From fd91eb69db32059037120c02b6796cf3fa4f3a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= Date: Mon, 18 Jan 2021 22:00:29 +0100 Subject: [PATCH] Haiku patches --- configure.ac | 4 ++++ include/byteorder.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index d7f171c52..523c421aa 100644 --- a/configure.ac +++ b/configure.ac @@ -487,6 +487,10 @@ case "$host" in dnl FEATURE: Whether to support direct serial port passthrough AC_DEFINE(C_DIRECTSERIAL, 1, [ Define to 1 if you want serial passthrough support (Win32, Posix and OS/2).]) ;; + *-*-haiku*) + AC_DEFINE(BSD, 1, [Compiling on BSD]) + LIBS="$LIBS -lbsd -lnetwork" + CXXFLAGS="$CXXFLAGS -D_BSD_SOURCE" *-*-os2-emx*) AC_DEFINE(OS2, 1, [Compiling on OS/2 EMX]) dnl FEATURE: Whether to support direct serial port passthrough diff --git a/include/byteorder.h b/include/byteorder.h index 13319ba81..5b666374e 100644 --- a/include/byteorder.h +++ b/include/byteorder.h @@ -132,5 +132,9 @@ #define be64toh(x) betoh64(x) #define le64toh(x) letoh64(x) +#elif defined(__HAIKU__) + +#include + #endif