aports/unmaintained/emelfm2/01-avoid_fstab.patch
Carlo Landmeter b6af1e02ef testing/[multiple]: move unmaintained packages
This moves all packages from testing to unmaintained which have not been
updated for atleast 6 months. If you are affected by this commit please follow
this proceddure:

* make sure your packages build on all architectures
* move your pacakge(s) back to testing
* if you want to keep this package and can maintain it (or find somebody to
  maintain it for you) for a minimum of 6 months ask it to be moved to community
2016-08-25 15:26:24 +02:00

31 lines
745 B
Diff

--- 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 ())