summaryrefslogtreecommitdiff
path: root/devel/android-tools-fastboot/files/patch-libselinux_src_init.c
blob: 1e7faa69287c23a2f652fcc630a9e8c953ef109b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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)