summaryrefslogtreecommitdiff
path: root/devel/android-tools-fastboot/files
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2015-10-13 18:03:49 +0000
committerJan Beich <jbeich@FreeBSD.org>2015-10-13 18:03:49 +0000
commitf749f090b0ed807846a7e7f125d59263d4a18f96 (patch)
tree80a0a25fe93bdd6a7627447cf5a90812de2dc38d /devel/android-tools-fastboot/files
parentdevel/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')
-rw-r--r--devel/android-tools-fastboot/files/Makefile1
-rw-r--r--devel/android-tools-fastboot/files/patch-libselinux_src_init.c30
2 files changed, 30 insertions, 1 deletions
diff --git a/devel/android-tools-fastboot/files/Makefile b/devel/android-tools-fastboot/files/Makefile
index afca2f944a14..d37c577a3aed 100644
--- a/devel/android-tools-fastboot/files/Makefile
+++ b/devel/android-tools-fastboot/files/Makefile
@@ -50,7 +50,6 @@ SRCS+= init.c
SRCS+= label.c
SRCS+= label_android_property.c
SRCS+= label_file.c
-CPPFLAGS.init.c+= -DDARWIN # statfs
# required by fastboot and ext4_utils
.PATH: ${.CURDIR}/../libsparse
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)