diff options
author | Harshavardhana <harsha@harshavardhana.net> | 2014-04-28 15:27:13 -0700 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2014-04-29 16:18:16 -0700 |
commit | 4d9e0bf658cce3cf9f808bb6d0a4cb2d8c9ad504 (patch) | |
tree | 5146bc225cff4a9b730b654e3faa8c7d28bb12c8 /xlators/mgmt | |
parent | 540065ba490339ce173552751953485fa32ed0bf (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.c | 5 |
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) |