[Mesa-dev] [PATCH 7/8] android, mesa_gen_matypes: pull in timespec POSIX definition
Adrian Negreanu
groleo at gmail.com
Fri Jun 6 02:16:11 PDT 2014
From: Adrian Negreanu <adrian.m.negreanu at intel.com>
This fixes:
include/c11/threads_posix.h: In function 'cnd_timedwait':
include/c11/threads_posix.h:140:21: error: storage size of 'abs_time' isn't known
Signed-off-by: Adrian Negreanu <adrian.m.negreanu at intel.com>
---
src/mesa/Android.libmesa_glsl_utils.mk | 1 +
src/mesa/Android.mesa_gen_matypes.mk | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/mesa/Android.libmesa_glsl_utils.mk b/src/mesa/Android.libmesa_glsl_utils.mk
index 47f2e15..e93891f 100644
--- a/src/mesa/Android.libmesa_glsl_utils.mk
+++ b/src/mesa/Android.libmesa_glsl_utils.mk
@@ -56,6 +56,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := libmesa_glsl_utils
LOCAL_IS_HOST_MODULE := true
+LOCAL_CFLAGS := -D_POSIX_C_SOURCE=199309L
LOCAL_C_INCLUDES := \
$(MESA_TOP)/src/glsl \
diff --git a/src/mesa/Android.mesa_gen_matypes.mk b/src/mesa/Android.mesa_gen_matypes.mk
index 6e301f9..5521087 100644
--- a/src/mesa/Android.mesa_gen_matypes.mk
+++ b/src/mesa/Android.mesa_gen_matypes.mk
@@ -33,6 +33,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE := mesa_gen_matypes
LOCAL_IS_HOST_MODULE := true
+LOCAL_CFLAGS := -D_POSIX_C_SOURCE=199309L
LOCAL_C_INCLUDES := \
$(MESA_TOP)/src/mapi \
--
2.0.0.rc4
More information about the mesa-dev
mailing list