summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-05-08 05:56:10 +0000
committerTim Potter <tpot@samba.org>2001-05-08 05:56:10 +0000
commit0b14ab014481613f4a234b71609d05f8cce9ce2c (patch)
tree158fa7d913d19aeeb00a860134bc67a84082165a
parentae6e20300ce125a7922d2434520c439877a90881 (diff)
downloadsamba-0b14ab014481613f4a234b71609d05f8cce9ce2c.tar.gz
samba-0b14ab014481613f4a234b71609d05f8cce9ce2c.tar.bz2
samba-0b14ab014481613f4a234b71609d05f8cce9ce2c.zip
Added S_ISSOCK macros for systems which treat UNIX domain sockets as FIFOs
(SCO). (This used to be commit d761a7deb3696fc0742fb349868317f42825290e)
-rw-r--r--source3/nsswitch/winbind_nss_config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/nsswitch/winbind_nss_config.h b/source3/nsswitch/winbind_nss_config.h
index 39fe006557..f0e52210df 100644
--- a/source3/nsswitch/winbind_nss_config.h
+++ b/source3/nsswitch/winbind_nss_config.h
@@ -163,4 +163,14 @@ typedef int BOOL;
/* zero a structure given a pointer to the structure */
#define ZERO_STRUCTP(x) { if ((x) != NULL) memset((char *)(x), 0, sizeof(*(x))); }
+/* Some systems (SCO) treat UNIX domain sockets as FIFOs */
+
+#ifndef S_IFSOCK
+#define S_IFSOCK S_IFIFO
+#endif
+
+#ifndef S_ISSOCK
+#define S_ISSOCK(mode) ((mode & S_IFSOCK) == S_IFSOCK)
+#endif
+
#endif