aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crypto/compat/arc4random.h3
-rw-r--r--include/compat/machine/endian.h2
-rw-r--r--m4/check-os-options.m45
3 files changed, 9 insertions, 1 deletions
diff --git a/crypto/compat/arc4random.h b/crypto/compat/arc4random.h
index 762aec2..ffa3239 100644
--- a/crypto/compat/arc4random.h
+++ b/crypto/compat/arc4random.h
@@ -15,6 +15,9 @@
15#elif defined(__linux__) 15#elif defined(__linux__)
16#include "arc4random_linux.h" 16#include "arc4random_linux.h"
17 17
18#elif defined(__midipix__)
19#include "arc4random_linux.h"
20
18#elif defined(__NetBSD__) 21#elif defined(__NetBSD__)
19#include "arc4random_netbsd.h" 22#include "arc4random_netbsd.h"
20 23
diff --git a/include/compat/machine/endian.h b/include/compat/machine/endian.h
index 5ec39af..43dac8f 100644
--- a/include/compat/machine/endian.h
+++ b/include/compat/machine/endian.h
@@ -21,7 +21,7 @@
21#define BYTE_ORDER BIG_ENDIAN 21#define BYTE_ORDER BIG_ENDIAN
22#endif 22#endif
23 23
24#elif defined(__linux__) 24#elif defined(__linux__) || defined(__midipix__)
25#include <endian.h> 25#include <endian.h>
26 26
27#elif defined(__sun) || defined(_AIX) || defined(__hpux) 27#elif defined(__sun) || defined(_AIX) || defined(__hpux)
diff --git a/m4/check-os-options.m4 b/m4/check-os-options.m4
index 6483c89..8241aee 100644
--- a/m4/check-os-options.m4
+++ b/m4/check-os-options.m4
@@ -80,6 +80,10 @@ char buf[1]; getentropy(buf, 1);
80 HOST_ABI=elf 80 HOST_ABI=elf
81 CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE" 81 CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE"
82 ;; 82 ;;
83 *midipix*)
84 HOST_OS=midipix
85 CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE"
86 ;;
83 *netbsd*) 87 *netbsd*)
84 HOST_OS=netbsd 88 HOST_OS=netbsd
85 HOST_ABI=elf 89 HOST_ABI=elf
@@ -130,6 +134,7 @@ AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin])
130AM_CONDITIONAL([HOST_FREEBSD], [test x$HOST_OS = xfreebsd]) 134AM_CONDITIONAL([HOST_FREEBSD], [test x$HOST_OS = xfreebsd])
131AM_CONDITIONAL([HOST_HPUX], [test x$HOST_OS = xhpux]) 135AM_CONDITIONAL([HOST_HPUX], [test x$HOST_OS = xhpux])
132AM_CONDITIONAL([HOST_LINUX], [test x$HOST_OS = xlinux]) 136AM_CONDITIONAL([HOST_LINUX], [test x$HOST_OS = xlinux])
137AM_CONDITIONAL([HOST_MIDIPIX], [test x$HOST_OS = xmidipix])
133AM_CONDITIONAL([HOST_NETBSD], [test x$HOST_OS = xnetbsd]) 138AM_CONDITIONAL([HOST_NETBSD], [test x$HOST_OS = xnetbsd])
134AM_CONDITIONAL([HOST_OPENBSD], [test x$HOST_OS = xopenbsd]) 139AM_CONDITIONAL([HOST_OPENBSD], [test x$HOST_OS = xopenbsd])
135AM_CONDITIONAL([HOST_SOLARIS], [test x$HOST_OS = xsolaris]) 140AM_CONDITIONAL([HOST_SOLARIS], [test x$HOST_OS = xsolaris])