[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] Fix ioemu compile on Solaris
# HG changeset patch # User xen-discuss@xxxxxxxxxxxxxxx # Date 1203680243 28800 # Node ID 3a0e7fc8b4b7c650c9377c7b2a197c127913a622 # Parent 0accc274f62715d356a591d2286027f7591a9412 Fix ioemu compile on Solaris _POSIX_C_SOURCE does not guarantee the available of the 1003.1j option which contains posix_memalign(). Fix the test to explicitly test for Linux. Signed-off-by: John Levon <john.levon@xxxxxxx> diff --git a/tools/ioemu/osdep.c b/tools/ioemu/osdep.c --- a/tools/ioemu/osdep.c +++ b/tools/ioemu/osdep.c @@ -178,7 +178,7 @@ void kqemu_vfree(void *ptr) void *qemu_memalign(size_t alignment, size_t size) { -#if defined(_POSIX_C_SOURCE) +#if defined(__Linux__) int ret; void *ptr; ret = posix_memalign(&ptr, alignment, size); _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |