summaryrefslogtreecommitdiffstats
path: root/contrib/mount/mntent_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/mount/mntent_compat.h')
-rw-r--r--contrib/mount/mntent_compat.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/mount/mntent_compat.h b/contrib/mount/mntent_compat.h
index 76a75754b1c..3f9cc931266 100644
--- a/contrib/mount/mntent_compat.h
+++ b/contrib/mount/mntent_compat.h
@@ -11,7 +11,7 @@
#ifndef _MNTENT_H
#define _MNTENT_H
-#ifdef GF_DARWIN_HOST_OS
+#if defined(GF_DARWIN_HOST_OS) || defined(__NetBSD__)
#include <stdio.h>
struct mntent {
@@ -24,6 +24,8 @@ struct mntent {
};
struct mntent *getmntent (FILE *fp);
+struct mntent *getmntent_r (FILE *fp, struct mntent *result,
+ char *buffer, int bufsize);
FILE *setmntent (const char *filename, const char *type);
int endmntent(FILE *fp);
char * hasmntopt (const struct mntent *mnt, const char *option);
@@ -31,5 +33,5 @@ char * hasmntopt (const struct mntent *mnt, const char *option);
/* Dummy - /etc/mtab has no meaning on OSX platform */
#define _PATH_MOUNTED "/etc/mtab"
-#endif /* GF_DARWIN_HOST_OS */
+#endif /* GF_DARWIN_HOST_OS || __NetBSD__ */
#endif /* _MNTENT_H */