summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorHarshavardhana <harsha@harshavardhana.net>2014-04-28 15:27:13 -0700
committerAnand Avati <avati@redhat.com>2014-04-29 16:18:16 -0700
commit4d9e0bf658cce3cf9f808bb6d0a4cb2d8c9ad504 (patch)
tree5146bc225cff4a9b730b654e3faa8c7d28bb12c8 /xlators/mgmt
parent540065ba490339ce173552751953485fa32ed0bf (diff)
glusterd: make sure that mntent.h is conditionally included
Change-Id: I39c362c0908166707e10e8820cc1ee9a0989dcbe BUG: 1089172 Signed-off-by: Harshavardhana <harsha@harshavardhana.net> Reviewed-on: http://review.gluster.org/7584 Reviewed-by: Anand Avati <avati@redhat.com> Tested-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-store.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c
index afbc8ff35ee..41668b1db75 100644
--- a/xlators/mgmt/glusterd/src/glusterd-store.c
+++ b/xlators/mgmt/glusterd/src/glusterd-store.c
@@ -44,7 +44,12 @@
#include <sys/resource.h>
#include <inttypes.h>
#include <dirent.h>
+
+#if !defined(__NetBSD__) && !defined(GF_DARWIN_HOST_OS)
#include <mntent.h>
+#else
+#include "mntent_compat.h"
+#endif
void
glusterd_replace_slash_with_hyphen (char *str)