Android.mk: Add -D_GNU_SOURCE to common_cflags

Other build scripts define -D_GNU_SOURCE. The Android build
system should too.

Fixes the following warning:

external/selinux/libsepol/cil/src/cil_mem.c:109:7: warning: implicit
  declaration of function 'vasprintf' is invalid in C99
  [-Wimplicit-function-declaration]
This commit is contained in:
Nick Kralevich 2016-04-06 16:15:22 -07:00 committed by Stephen Smalley
parent a421da29eb
commit 46ed3e54b6

View File

@ -64,6 +64,7 @@ cil_src_files := \
cil/src/cil_verify.c
common_cflags := \
-D_GNU_SOURCE \
-Wall -W -Wundef \
-Wshadow -Wmissing-noreturn \
-Wmissing-format-attribute