summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-misc.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-06-12 16:57:14 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-06-12 16:57:14 +0000
commit837461bf9a8f71b96a522bf6f51d6fdcb5b2a8cd (patch)
tree8d9133b0e60ad650bf440158bb742a8af7f5c06f /openbsd-compat/bsd-misc.c
parentda394cae048e9106ad4f280c91e37ab0df2f1f97 (diff)
- (bal) Build noop setgroups() for cygwin to clean up code (For other
platforms without the setgroups() requirement, you MUST define SETGROUPS_NOOP in the configure.ac) Based on patch by vinschen@redhat.com
Diffstat (limited to 'openbsd-compat/bsd-misc.c')
-rw-r--r--openbsd-compat/bsd-misc.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c
index 237f93931..680375ce6 100644
--- a/openbsd-compat/bsd-misc.c
+++ b/openbsd-compat/bsd-misc.c
@@ -24,7 +24,7 @@
24 24
25#include "includes.h" 25#include "includes.h"
26 26
27RCSID("$Id: bsd-misc.c,v 1.6 2002/05/08 02:51:32 tim Exp $"); 27RCSID("$Id: bsd-misc.c,v 1.7 2002/06/12 16:57:15 mouring Exp $");
28 28
29char *get_progname(char *argv0) 29char *get_progname(char *argv0)
30{ 30{
@@ -118,3 +118,14 @@ int truncate (const char *path, off_t length)
118} 118}
119#endif /* HAVE_TRUNCATE */ 119#endif /* HAVE_TRUNCATE */
120 120
121#if !defined(HAVE_SETGROUPS) && defined(SETGROUPS_NOOP)
122/*
123 * Cygwin setgroups should be a noop.
124 */
125int
126setgroups(size_t size, const git_t *list)
127{
128 return 0;
129}
130#endif
131