On 05/06/2015 06:33 PM, Jeffrey Vander Stoep wrote: > I am working on switching AOSP to the upstream selinux project. > Unfortunately this commit breaks the AOSP build on Mac OS. Darwin has no > fmemopen. > > external/selinux/libsepol/src/module_to_cil.c:2927:7: warning: implicit > declaration of function 'fmemopen' [-Wimplicit-function-declaration] > fp = fmemopen(seusers, seusers_len, "r"); > ^ > external/selinux/libsepol/src/module_to_cil.c:2927:5: error: > incompatible integer to pointer conversion assigning to 'FILE *' (aka > 'struct __sFILE *') from 'int' [-Werror,-Wint-conversion] > fp = fmemopen(seusers, seusers_len, "r"); > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > external/selinux/libsepol/src/module_to_cil.c:3017:5: error: > incompatible integer to pointer conversion assigning to 'FILE *' (aka > 'struct __sFILE *') from 'int' [-Werror,-Wint-conversion] > fp = fmemopen(userx, userx_len, "r"); > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > external/selinux/libsepol/src/module_to_cil.c:3073:5: error: > incompatible integer to pointer conversion assigning to 'FILE *' (aka > 'struct __sFILE *') from 'int' [-Werror,-Wint-conversion] > fp = fmemopen(fc, fc_len, "r"); > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ > 1 warning and 3 errors generated. > make: *** > [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libsepol_intermediates/src/module_to_cil.o] > Error 1 Could we perhaps use this when building on OSX: https://github.com/NimbusKit/memorymapping _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.