|
@@ -14,6 +14,10 @@
|
|
#include <stdlib.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <string.h>
|
|
|
|
|
|
|
|
+#ifdef HAVE_SYS_PARAM_H
|
|
|
|
+#include <sys/param.h>
|
|
|
|
+#endif
|
|
|
|
+
|
|
#if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && \
|
|
#if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) && \
|
|
__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
|
__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
|
# define IS_LITTLE_ENDIAN 1
|
|
# define IS_LITTLE_ENDIAN 1
|
|
@@ -31,7 +35,7 @@
|
|
# define IS_LITTLE_ENDIAN
|
|
# define IS_LITTLE_ENDIAN
|
|
# endif
|
|
# endif
|
|
#else
|
|
#else
|
|
-# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
|
|
|
|
|
+# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(OpenBSD)
|
|
# include <sys/endian.h>
|
|
# include <sys/endian.h>
|
|
# else
|
|
# else
|
|
# include <endian.h>
|
|
# include <endian.h>
|