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:
Keir Fraser committed 2008-04-09 16:54:44 +01:00
1 parent 24561bd0a1
commit 3cb6817ad5
1 file changed
+1 -1
+1 -1
View File
@@ -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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.