From 3cb6817ad5b7dd6a7a5702d64c8c74184591df05 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 9 Apr 2008 16:54:44 +0100 Subject: [PATCH] libxc: Leave portability of xg_memalign() as in original patch, rather than following ioemu/osdep.c. This unbreaks build of readnotes. Signed-off-by: Keir Fraser --- tools/libxc/xg_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxc/xg_private.h b/tools/libxc/xg_private.h index 2b863f7b74..563585793a 100644 --- a/tools/libxc/xg_private.h +++ b/tools/libxc/xg_private.h @@ -180,7 +180,7 @@ int pin_table(int xc_handle, unsigned int type, unsigned long mfn, /* Grrr portability */ static inline void *xg_memalign(size_t alignment, size_t size) { -#if defined(_POSIX_C_SOURCE) && !defined(__sun__) +#if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 600 int ret; void *ptr; ret = posix_memalign(&ptr, alignment, size); -- 2.39.5