From 671a55084649f9e33018b1e5e1af4e28c639bf3b Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Sat, 4 Apr 2015 05:01:21 +0800 Subject: android: fix building issues of host binaries Define _GNU_SOURCE to enable features (__USE_XOPEN2K and __USE_UNIX98) required to build the host binaries. Signed-off-by: Chih-Wei Huang Reviewed-by: Emil Velikov --- Android.common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Android.common.mk') diff --git a/Android.common.mk b/Android.common.mk index a4ee181..edf52d6 100644 --- a/Android.common.mk +++ b/Android.common.mk @@ -24,7 +24,7 @@ # use c99 compiler by default ifeq ($(LOCAL_CC),) ifeq ($(LOCAL_IS_HOST_MODULE),true) -LOCAL_CC := $(HOST_CC) -std=c99 +LOCAL_CC := $(HOST_CC) -std=c99 -D_GNU_SOURCE else LOCAL_CC := $(TARGET_CC) -std=c99 endif -- cgit v1.1