summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2015-02-15 17:56:51 +0100
committerNiels de Vos <ndevos@redhat.com>2015-02-24 13:10:29 -0800
commit729428aae82e8b878227bb71e65b629783e17ffb (patch)
treebcf87b27aa7fbb83af95380f97612313ca910ddd /xlators
parent46a2b9e48160c593a73756d91781298144528e50 (diff)
Portability fix: rpc.statd location
rpc.statd is in /usr/sbin on NetBSD BUG: 1129939 Change-Id: I6d09e2525cc8242ef3d25d3d5421d57aac711ea4 Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org> Reviewed-on: http://review.gluster.org/9654 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/nfs/server/src/nlm4.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/xlators/nfs/server/src/nlm4.h b/xlators/nfs/server/src/nlm4.h
index 05c847c7738..0ed05deb947 100644
--- a/xlators/nfs/server/src/nlm4.h
+++ b/xlators/nfs/server/src/nlm4.h
@@ -60,10 +60,14 @@
/* Registered with portmap */
#define GF_NLM4_PORT 38468
#define GF_NLM GF_NFS"-NLM"
-#ifdef GF_DARWIN_HOST_OS
+#if defined(GF_DARWIN_HOST_OS)
#define GF_RPC_STATD_PROG "/usr/sbin/rpc.statd"
#define GF_RPC_STATD_PIDFILE "/var/run/statd.pid"
#define GF_SM_NOTIFY_PIDFILE "/var/run/statd.notify.pid"
+#elif defined(__NetBSD__)
+#define GF_RPC_STATD_PROG "/usr/sbin/rpc.statd"
+#define GF_RPC_STATD_PIDFILE "/var/run/rpc.statd.pid"
+#define GF_SM_NOTIFY_PIDFILE "/var/run/inexistant.pid"
#else
#define GF_RPC_STATD_PROG "/sbin/rpc.statd"
#define GF_RPC_STATD_PIDFILE "/var/run/rpc.statd.pid"