[PATCH 5/8] libselinux/utils: add noreturn to sefcontext_compile

2016-10-17 Thread william . c . roberts
From: William Roberts When building on mac, one encounters this error: sefcontext_compile.c:270:1: error: function 'usage' could be declared with attribute 'noreturn' [-Werror,-Wmissing-noreturn] To correct this, add the attribute noreturn to the function.

[PATCH 2/8] libsepol: build on mac

2016-10-17 Thread william . c . roberts
From: William Roberts Correct the build issues on mac, mostly flags for tools. libsepol and cil now build completley on Mac with a simple make command. Signed-off-by: William Roberts --- libsepol/src/Makefile | 9 - 1 file

[PATCH 8/8] libselinux: add booleans.c to ANDROID_HOST=y recipe

2016-10-17 Thread william . c . roberts
From: William Roberts We build booleans.c with DISABLE_BOOL set on Android host and target. Add that file to the upstream Makefile. Signed-off-by: William Roberts --- libselinux/src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 3/8] libselinux: fix mac build warning when ANDROID_HOST=y

2016-10-17 Thread william . c . roberts
From: William Roberts When building on Mac, outside of the Android tree, with ANDROID_HOST=y, this warning is observed: label.c:102:9: warning: implicit declaration of function 'fgets_unlocked' is invalid in C99 [-Wimplicit-function-declaration] while

[PATCH 7/8] libselinux: DISABLE_BOOL move to include headers

2016-10-17 Thread william . c . roberts
From: William Roberts Some systems, like Mac, don't have stdio_ext.h. Since we're building with DISABLE_BOOL=y on Mac, just include the header files with the DISABLE define, and use the bare minimum headers for DISABLE_BOOL=y. Signed-off-by: William Roberts