aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-09-12 12:36:04 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-09-12 12:36:04 +0000
commitd741429a9b81fc62666e9be1ab4076e435195093 (patch)
treeb409e58790ac6489214c516afa347de33bcd156c /configure
parentFix OpenSolaris build breaking typos (diff)
downloadqemu-kvm-d741429a9b81fc62666e9be1ab4076e435195093.tar.gz
qemu-kvm-d741429a9b81fc62666e9be1ab4076e435195093.tar.bz2
qemu-kvm-d741429a9b81fc62666e9be1ab4076e435195093.zip
Add #defines needed by OpenSolaris, fix breakage by the #defines
We need to define _XOPEN_SOURCE and __EXTENSIONS__ macros in order to get CMSG_ and TIOCWIN macros defined. But then _POSIX_C_SOURCE gets defined, which is (incorrectly) used as an indicator for existence of posix_memalign() in osdep.c. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 646da7538..1160cf655 100755
--- a/configure
+++ b/configure
@@ -326,6 +326,10 @@ SunOS)
audio_drv_list="oss"
fi
audio_possible_drivers="oss sdl"
+# needed for CMSG_ macros in sys/socket.h
+ QEMU_CFLAGS="-D_XOPEN_SOURCE=600 $QEMU_CFLAGS"
+# needed for TIOCWIN* defines in termios.h
+ QEMU_CFLAGS="-D__EXTENSIONS__ $QEMU_CFLAGS"
QEMU_CFLAGS="-std=gnu99 $QEMU_CFLAGS"
LIBS="-lsocket -lnsl -lresolv $LIBS"
;;