summaryrefslogtreecommitdiffstats
path: root/testing/emelfm2/01-avoid_fstab.patch
blob: 1b9d0d2eaf0a08d95e08380869dda5e89b936047 (plain)
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
--- emelfm2-0.9.1-origin/src/filesystem/e2_fs_mount.c
+++ emelfm2-0.9.1/src/filesystem/e2_fs_mount.c
@@ -46,7 +46,7 @@
 #endif
 //other exclusions go here ...
 
-# if defined(__linux__)
+# if defined(__GLIBC__)
 #  include <mntent.h>
 #  include <fstab.h>
 
@@ -62,7 +62,9 @@
 
 # else
 #  include <mntent.h>
+#  if defined(__GLIBC__)
 #  include <fstab.h>
+#  endif
 
 /*Some systems use statfs() to provide information about mounted
 file systems, other systems use statvfs(). The header files used with
@@ -1020,7 +1022,7 @@
 {
 	GList *fstab_list = NULL;
 	//CHECKME lock data file while accessing it ??
-#if defined(__E2BSD__) || defined(__linux__)
+#if defined(__E2BSD__) || defined(__GLIBC__)
     struct fstab *fs;
 
 	if (!setfsent ())