From 30c046901beb29d1cc3430bfad029ec3a3eaf06c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 31 Oct 1997 04:51:29 +0000 Subject: OSF1 doesn't define union semun either. (This used to be commit af7700aa2e3c736f86ae3217a424dfb0910f5f45) --- source3/include/includes.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'source3/include') diff --git a/source3/include/includes.h b/source3/include/includes.h index 055e633846..92688dd004 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -319,14 +319,7 @@ extern int innetgr (const char *, const char *, const char *, const char *); #define USE_GETCWD #define USE_SETSID #define USE_SYSV_IPC - -union semun { - int val; - struct semid_ds *buf; - ushort *array; -}; - - +#define NO_SEMUN #ifndef REPLACE_GETPASS #define REPLACE_GETPASS #endif /* REPLACE_GETPASS */ @@ -469,6 +462,7 @@ char *mktemp(char *); /* No standard include */ #define NEED_AUTH_PARAMETERS #endif /* OSF1_ENH_SEC */ #define USE_SYSV_IPC +#define NO_SEMUN #endif @@ -1084,6 +1078,13 @@ struct spwd { /* fake shadow password structure */ #include #include #include +#ifdef NO_SEMUN +union semun { + int val; + struct semid_ds *buf; + unsigned short *array; +}; +#endif #endif #ifdef AFS_AUTH -- cgit