diff options
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbind_nss_config.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/nsswitch/winbind_nss_config.h b/source3/nsswitch/winbind_nss_config.h index 0f2008fc20..c663842a81 100644 --- a/source3/nsswitch/winbind_nss_config.h +++ b/source3/nsswitch/winbind_nss_config.h @@ -87,7 +87,7 @@ NSS_STATUS_UNAVAIL #ifndef _PSTRING #define _PSTRING #define PSTRING_LEN 1024 -#define FSTRING_LEN 128 +#define FSTRING_LEN 256 typedef char pstring[PSTRING_LEN]; typedef char fstring[FSTRING_LEN]; #endif @@ -127,5 +127,13 @@ 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 |