From 0b14ab014481613f4a234b71609d05f8cce9ce2c Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 8 May 2001 05:56:10 +0000 Subject: Added S_ISSOCK macros for systems which treat UNIX domain sockets as FIFOs (SCO). (This used to be commit d761a7deb3696fc0742fb349868317f42825290e) --- source3/nsswitch/winbind_nss_config.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source3/nsswitch') 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 -- cgit