void-packages/srcpkgs/nmon/patches/endmntent.patch
2016-03-05 11:14:26 +01:00

19 lines
440 B
Diff

--- lmon16d.c.orig 2016-03-04 18:41:57.788556435 +0100
+++ lmon16d.c 2016-03-04 18:42:11.090751839 +0100
@@ -692,7 +692,6 @@
int isroot = 0;
#include <mntent.h>
-#include <fstab.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <net/if.h>
@@ -3435,7 +3434,7 @@
mp->mnt_dir[JFSNAMELEN - 1] = 0;
mp->mnt_type[JFSTYPELEN - 1] = 0;
}
- endfsent();
+ endmntent(mfp);
jfs_loaded = 1;
jfses = i;
}