24 lines
565 B
Plaintext
24 lines
565 B
Plaintext
$NetBSD: patch-ab,v 1.4 2012/01/11 18:05:09 hans Exp $
|
|
|
|
--- applyplugin.c.orig 2007-11-06 10:52:56.000000000 +0000
|
|
+++ applyplugin.c
|
|
@@ -6,7 +6,17 @@
|
|
/*****************************************************************************/
|
|
|
|
#include <dlfcn.h>
|
|
-#include <endian.h>
|
|
+#ifdef __linux__
|
|
+# include <endian.h>
|
|
+#elif defined(__sun)
|
|
+# include <sys/byteorder.h>
|
|
+# ifdef _LITTLE_ENDIAN
|
|
+# define LITTLE_ENDIAN 1234
|
|
+# define BYTE_ORDER LITTLE_ENDIAN
|
|
+# endif
|
|
+#else
|
|
+# include <sys/endian.h>
|
|
+#endif
|
|
#include <errno.h>
|
|
#include <math.h>
|
|
#include <stdlib.h>
|