summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/getmntent.c2
-rw-r--r--misc/miscfn.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/misc/getmntent.c b/misc/getmntent.c
index ebce8ab34..d2455a266 100644
--- a/misc/getmntent.c
+++ b/misc/getmntent.c
@@ -11,7 +11,7 @@
#define COMMENTCHAR '#'
#endif
-#if HAVE_STRUCT_MNTTAB {
+#if HAVE_STRUCT_MNTTAB
our_mntent * getmntent(FILE *filep) {
static struct mnttab entry;
static our_mntent item = { entry.mt_filsys };
diff --git a/misc/miscfn.h b/misc/miscfn.h
index 0ca0ef397..80a519480 100644
--- a/misc/miscfn.h
+++ b/misc/miscfn.h
@@ -62,7 +62,10 @@ extern void *myrealloc(void *, size_t);
#define lchown chown
#endif
-#if HAVE_MNTENT_H || !(HAVE_GETMNTENT) || HAVE_STRUCT_MNTTAB
+#if HAVE_GETMNTINFO_R || HAVE_MNTCTL
+# define GETMNTENT_ONE 0
+# define GETMNTENT_TWO 0
+#elif HAVE_MNTENT_H || !(HAVE_GETMNTENT) || HAVE_STRUCT_MNTTAB
# if HAVE_MNTENT_H || HAVE_STRUCT_MNTTAB
# include <mntent.h>
# define our_mntent struct mntent