From b80c4bf262a4eefbe55be78fee5853b787711bca Mon Sep 17 00:00:00 2001 From: Ørjan Malde Date: Sun, 20 Oct 2019 20:22:22 +0200 Subject: initial support for midipix --- crypto/compat/arc4random.h | 3 +++ include/compat/machine/endian.h | 2 +- m4/check-os-options.m4 | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) 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 @@ #elif defined(__linux__) #include "arc4random_linux.h" +#elif defined(__midipix__) +#include "arc4random_linux.h" + #elif defined(__NetBSD__) #include "arc4random_netbsd.h" 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 @@ #define BYTE_ORDER BIG_ENDIAN #endif -#elif defined(__linux__) +#elif defined(__linux__) || defined(__midipix__) #include #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); HOST_ABI=elf CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE" ;; + *midipix*) + HOST_OS=midipix + CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE" + ;; *netbsd*) HOST_OS=netbsd HOST_ABI=elf @@ -130,6 +134,7 @@ AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin]) AM_CONDITIONAL([HOST_FREEBSD], [test x$HOST_OS = xfreebsd]) AM_CONDITIONAL([HOST_HPUX], [test x$HOST_OS = xhpux]) AM_CONDITIONAL([HOST_LINUX], [test x$HOST_OS = xlinux]) +AM_CONDITIONAL([HOST_MIDIPIX], [test x$HOST_OS = xmidipix]) AM_CONDITIONAL([HOST_NETBSD], [test x$HOST_OS = xnetbsd]) AM_CONDITIONAL([HOST_OPENBSD], [test x$HOST_OS = xopenbsd]) AM_CONDITIONAL([HOST_SOLARIS], [test x$HOST_OS = xsolaris]) -- cgit v1.2.3-55-g6feb