[Beignet] [PATCH 5/8] Accept glibc's implementation of memalign()
Zhigang Gong
zhigang.gong at linux.intel.com
Wed Apr 17 00:51:56 PDT 2013
From: Simon Richter <Simon.Richter at hogyros.de>
If the platform is not Linux, but glibc based, we assume that the
memalign() function is working satisfactorily.
Reviewed-by: Zhigang Gong <zhigang.gong at linux.intel.com>
---
backend/src/sys/alloc.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/src/sys/alloc.cpp b/backend/src/sys/alloc.cpp
index cc2186f..2db95c9 100644
--- a/backend/src/sys/alloc.cpp
+++ b/backend/src/sys/alloc.cpp
@@ -271,7 +271,7 @@ namespace gbe
/// Linux Platform
////////////////////////////////////////////////////////////////////////////////
-#if defined(__LINUX__)
+#if defined(__LINUX__) || defined(__GLIBC__)
#include <unistd.h>
#include <sys/mman.h>
--
1.7.11.7
More information about the Beignet
mailing list