summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.c
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-08-10 02:41:58 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-10 02:44:38 -0700
commitb56548d530a3c6b059906e2bd242e7845434e07b (patch)
treeef417845299fd22f9da3c72941a273a36e31dac9 /xlators/mgmt/glusterd/src/glusterd-utils.c
parent6cf8c2114a691a9b3f0eb42164d51e7fa86d33ea (diff)
glusterd: Solaris build fixes
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1178 (Gluster mainline build fails on Solaris) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1178
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 5ef0ce1e5c1..be8c95b584e 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -48,6 +48,10 @@
#include <sys/ioctl.h>
#include <sys/socket.h>
+#ifdef GF_SOLARIS_HOST_OS
+#include <sys/sockio.h>
+#endif
+
static glusterd_lock_t lock;
static int32_t
@@ -119,7 +123,7 @@ glusterd_is_local_addr (char *hostname)
int32_t num_req = 0;
struct sockaddr_in sa = {0,};
- sd = socket (AF_LOCAL, SOCK_DGRAM, 0);
+ sd = socket (PF_UNIX, SOCK_DGRAM, 0);
if (sd == -1)
goto out;