summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2002-09-15 17:49:53 +0000
committerJelmer Vernooij <jelmer@samba.org>2002-09-15 17:49:53 +0000
commit479e82b8d8413c88989dfb091c21a0ba003ed005 (patch)
tree850bd310028cd6fa5892b055f7360e91f37bdb59 /source3/lib
parent77f97113d0983bffe353b2a7ca8e99a0c9600572 (diff)
downloadsamba-479e82b8d8413c88989dfb091c21a0ba003ed005.tar.gz
samba-479e82b8d8413c88989dfb091c21a0ba003ed005.tar.bz2
samba-479e82b8d8413c88989dfb091c21a0ba003ed005.zip
Put unixsocket calls between #ifdef HAVE_UNIXSOCKET's - required for Stratus VOS
(Double checked) (This used to be commit dc3c14fc2b661a62a1876149e96af6de07a2c4a6)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_sock.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index 56ef4a6ab1..fc2abf976f 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -976,6 +976,7 @@ int create_pipe_sock(const char *socket_dir,
const char *socket_name,
mode_t dir_perms)
{
+#ifdef HAVE_UNIXSOCKET
struct sockaddr_un sunaddr;
struct stat st;
int sock;
@@ -1064,6 +1065,10 @@ int create_pipe_sock(const char *socket_dir,
/* Success! */
return sock;
+#else
+ DEBUG(0, ("create_pipe_sock: No Unix sockets on this system\n"));
+ return -1;
+#endif /* HAVE_UNIXSOCKET */
}
/*******************************************************************