diff options
author | Ørjan Malde <red@foxi.me> | 2019-10-20 20:22:22 +0200 |
---|---|---|
committer | Ørjan Malde <red@foxi.me> | 2019-10-20 20:22:22 +0200 |
commit | b80c4bf262a4eefbe55be78fee5853b787711bca (patch) | |
tree | 67f476b65926bf312e01c0aef46b1c384e4a1282 | |
parent | 6de156f87cb127e1540c2c3be8070523c69b827e (diff) | |
download | portable-b80c4bf262a4eefbe55be78fee5853b787711bca.tar.gz portable-b80c4bf262a4eefbe55be78fee5853b787711bca.tar.bz2 portable-b80c4bf262a4eefbe55be78fee5853b787711bca.zip |
initial support for midipix
-rw-r--r-- | crypto/compat/arc4random.h | 3 | ||||
-rw-r--r-- | include/compat/machine/endian.h | 2 | ||||
-rw-r--r-- | m4/check-os-options.m4 | 5 |
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]) | |||
130 | AM_CONDITIONAL([HOST_FREEBSD], [test x$HOST_OS = xfreebsd]) | 134 | AM_CONDITIONAL([HOST_FREEBSD], [test x$HOST_OS = xfreebsd]) |
131 | AM_CONDITIONAL([HOST_HPUX], [test x$HOST_OS = xhpux]) | 135 | AM_CONDITIONAL([HOST_HPUX], [test x$HOST_OS = xhpux]) |
132 | AM_CONDITIONAL([HOST_LINUX], [test x$HOST_OS = xlinux]) | 136 | AM_CONDITIONAL([HOST_LINUX], [test x$HOST_OS = xlinux]) |
137 | AM_CONDITIONAL([HOST_MIDIPIX], [test x$HOST_OS = xmidipix]) | ||
133 | AM_CONDITIONAL([HOST_NETBSD], [test x$HOST_OS = xnetbsd]) | 138 | AM_CONDITIONAL([HOST_NETBSD], [test x$HOST_OS = xnetbsd]) |
134 | AM_CONDITIONAL([HOST_OPENBSD], [test x$HOST_OS = xopenbsd]) | 139 | AM_CONDITIONAL([HOST_OPENBSD], [test x$HOST_OS = xopenbsd]) |
135 | AM_CONDITIONAL([HOST_SOLARIS], [test x$HOST_OS = xsolaris]) | 140 | AM_CONDITIONAL([HOST_SOLARIS], [test x$HOST_OS = xsolaris]) |