WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] libxc: Leave portability of xg_memalign()

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxc: Leave portability of xg_memalign() as in original patch, rather
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 09 Apr 2008 09:10:23 -0700
Delivery-date: Wed, 09 Apr 2008 09:10:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxc: Leave portability of xg_memalign() as in original patch, rather, Xen patchbot-unstable <=