diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-09-12 12:36:04 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-09-12 12:36:04 +0000 |
commit | d741429a9b81fc62666e9be1ab4076e435195093 (patch) | |
tree | b409e58790ac6489214c516afa347de33bcd156c /osdep.c | |
parent | 31ff504d2a00f3528837e4474f9650935edee1a4 (diff) | |
download | qemu-d741429a9b81fc62666e9be1ab4076e435195093.tar.gz qemu-d741429a9b81fc62666e9be1ab4076e435195093.tar.bz2 qemu-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 'osdep.c')
-rw-r--r-- | osdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -48,7 +48,7 @@ #include "sysemu.h" #include "qemu_socket.h" -#if !defined(_POSIX_C_SOURCE) || defined(_WIN32) +#if !defined(_POSIX_C_SOURCE) || defined(_WIN32) || defined(__sun__) static void *oom_check(void *ptr) { if (ptr == NULL) { @@ -87,7 +87,7 @@ void qemu_vfree(void *ptr) void *qemu_memalign(size_t alignment, size_t size) { -#if defined(_POSIX_C_SOURCE) +#if defined(_POSIX_C_SOURCE) && !defined(__sun__) int ret; void *ptr; ret = posix_memalign(&ptr, alignment, size); |