mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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>
This commit is contained in:
1 parent
24561bd0a1
commit
3cb6817ad5
1 file changed
+1
-1
@@ -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);
|
||||
|
||||