summaryrefslogtreecommitdiffstats
path: root/source/include/includes.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-07-29 05:05:36 +0000
committerAndrew Tridgell <tridge@samba.org>1998-07-29 05:05:36 +0000
commit8b25fe734166b76ceebf8d9543c706ebe0fddc96 (patch)
treeafcb4704429fd8eace29fbe503458a85afc00b88 /source/include/includes.h
parent19aa9a1c95d357e1041e9a3ece89d7bb3cc6f6ac (diff)
downloadsamba-8b25fe734166b76ceebf8d9543c706ebe0fddc96.tar.gz
samba-8b25fe734166b76ceebf8d9543c706ebe0fddc96.tar.xz
samba-8b25fe734166b76ceebf8d9543c706ebe0fddc96.zip
get rid of the runtime test for broken getgroups() and add a compile
time test instead. This also allows us to get rid of the igroups element of a couple of structures.
Diffstat (limited to 'source/include/includes.h')
-rw-r--r--source/include/includes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/include/includes.h b/source/include/includes.h
index b63787fd5e3..2a420f76ed1 100644
--- a/source/include/includes.h
+++ b/source/include/includes.h
@@ -287,6 +287,12 @@ extern char *sys_errlist[];
extern int errno;
#endif
+#ifdef HAVE_BROKEN_GETGROUPS
+#define GID_T int
+#else
+#define GID_T gid_t
+#endif
+
/* Lists, trees, caching, datbase... */
#include "ubi_sLinkList.h"