[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxc: Leave portability of xg_memalign() as in original patch, rather
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1207756484 -3600 # Node ID b3fdc4c3899516c981e66c1705dbfd4025bd8cd0 # Parent e63b48242116f9909799962ae17a4bff287e5cce 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 <keir.fraser@xxxxxxxxxx> --- tools/libxc/xg_private.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r e63b48242116 -r b3fdc4c38995 tools/libxc/xg_private.h --- a/tools/libxc/xg_private.h Wed Apr 09 16:32:51 2008 +0100 +++ b/tools/libxc/xg_private.h Wed Apr 09 16:54:44 2008 +0100 @@ -180,7 +180,7 @@ int pin_table(int xc_handle, unsigned in /* 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); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |