ia64/xen-unstable

changeset 17428:b3fdc4c38995

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@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Apr 09 16:54:44 2008 +0100 (2008-04-09)
parents e63b48242116
children 5b25d3264f7e
files tools/libxc/xg_private.h
line diff
     1.1 --- a/tools/libxc/xg_private.h	Wed Apr 09 16:32:51 2008 +0100
     1.2 +++ b/tools/libxc/xg_private.h	Wed Apr 09 16:54:44 2008 +0100
     1.3 @@ -180,7 +180,7 @@ int pin_table(int xc_handle, unsigned in
     1.4  /* Grrr portability */
     1.5  static inline void *xg_memalign(size_t alignment, size_t size)
     1.6  {
     1.7 -#if defined(_POSIX_C_SOURCE) && !defined(__sun__)
     1.8 +#if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 600
     1.9      int ret;
    1.10      void *ptr;
    1.11      ret = posix_memalign(&ptr, alignment, size);