diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2015-10-13 18:03:49 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2015-10-13 18:03:49 +0000 |
commit | f749f090b0ed807846a7e7f125d59263d4a18f96 (patch) | |
tree | 80a0a25fe93bdd6a7627447cf5a90812de2dc38d /devel/android-tools-fastboot/files/patch-libselinux_src_init.c | |
parent | devel/android-tools-*: slightly improve standalone build (diff) |
devel/android-tools-fastboot: don't search for selinuxfs mountpoint
Notes
Notes:
svn path=/head/; revision=399206
Diffstat (limited to 'devel/android-tools-fastboot/files/patch-libselinux_src_init.c')
-rw-r--r-- | devel/android-tools-fastboot/files/patch-libselinux_src_init.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/devel/android-tools-fastboot/files/patch-libselinux_src_init.c b/devel/android-tools-fastboot/files/patch-libselinux_src_init.c new file mode 100644 index 000000000000..1e7faa69287c --- /dev/null +++ b/devel/android-tools-fastboot/files/patch-libselinux_src_init.c @@ -0,0 +1,30 @@ +--- libselinux/src/init.c.orig 2015-06-15 21:40:06 UTC ++++ libselinux/src/init.c +@@ -7,10 +7,7 @@ + #include <stdio.h> + #include <dlfcn.h> + +-#ifdef DARWIN +-#include <sys/param.h> +-#include <sys/mount.h> +-#else ++#if defined(__linux__) + #include <sys/vfs.h> + #endif + +@@ -26,6 +23,7 @@ int selinux_page_size = 0; + + static void init_selinuxmnt(void) + { ++#if defined(__linux__) + char buf[BUFSIZ], *p; + FILE *fp=NULL; + struct statfs sfbuf; +@@ -94,6 +92,7 @@ static void init_selinuxmnt(void) + if (fp) + fclose(fp); + return; ++#endif + } + + void fini_selinuxmnt(void) |