diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-12 16:57:14 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-12 16:57:14 +0000 |
commit | 837461bf9a8f71b96a522bf6f51d6fdcb5b2a8cd (patch) | |
tree | 8d9133b0e60ad650bf440158bb742a8af7f5c06f /openbsd-compat/bsd-misc.h | |
parent | da394cae048e9106ad4f280c91e37ab0df2f1f97 (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.h')
-rw-r--r-- | openbsd-compat/bsd-misc.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h index 9475a2945..aff231733 100644 --- a/openbsd-compat/bsd-misc.h +++ b/openbsd-compat/bsd-misc.h | |||
@@ -22,7 +22,7 @@ | |||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | /* $Id: bsd-misc.h,v 1.4 2002/05/08 02:51:32 tim Exp $ */ | 25 | /* $Id: bsd-misc.h,v 1.5 2002/06/12 16:57:15 mouring Exp $ */ |
26 | 26 | ||
27 | #ifndef _BSD_MISC_H | 27 | #ifndef _BSD_MISC_H |
28 | #define _BSD_MISC_H | 28 | #define _BSD_MISC_H |
@@ -76,4 +76,9 @@ int utimes(char *filename, struct timeval *tvp); | |||
76 | int truncate (const char *path, off_t length); | 76 | int truncate (const char *path, off_t length); |
77 | #endif /* HAVE_TRUNCATE */ | 77 | #endif /* HAVE_TRUNCATE */ |
78 | 78 | ||
79 | #if !defined(HAVE_SETGROUPS) && defined(SETGROUPS_NOOP) | ||
80 | int setgroups(size_t size, const git_t *list); | ||
81 | #endif | ||
82 | |||
83 | |||
79 | #endif /* _BSD_MISC_H */ | 84 | #endif /* _BSD_MISC_H */ |