Most of missing features resides in the bsd library.
Also defining constant equivalence.
Signed-off-by: David Carlier <devnexen@gmail.com>
---
configure | 34 ++++++++++++++++++++++++++++++++--
include/qemu/bswap.h | 2 ++
include/qemu/osdep.h | 4 ++++
os-posix.c | 4 ++++
util/Makefile.objs | 2 +-
util/compatfd.c | 2 ++
util/main-loop.c | 1 +
util/oslib-posix.c | 20 ++++++++++++++++++++
util/qemu-openpty.c | 2 +-
9 files changed, 67 insertions(+), 4 deletions(-)
diff --git a/configure b/configure
index ba88fd1824..43baeadf31 100755
--- a/configure
+++ b/configure
@@ -901,8 +901,8 @@ SunOS)
;;
Haiku)
haiku="yes"
- QEMU_CFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS $QEMU_CFLAGS"
- LIBS="-lposix_error_mapper -lnetwork $LIBS"
+ QEMU_CFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS -D_BSD_SOURCE $QEMU_CFLAGS"
+ LIBS="-lposix_error_mapper -lnetwork -lbsd $LIBS"
;;
Linux)
audio_drv_list="try-pa oss"
@@ -2373,6 +2373,30 @@ else
l2tpv3=no
fi
+cat > $TMPC <<EOF
+#include <pty.h>
+int main(int argc, char *argv[]) {
+ return 0;
+}
+EOF