diff options
author | Darren Tucker <dtucker@zip.com.au> | 2013-05-30 08:29:08 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2013-05-30 08:29:08 +1000 |
commit | efdf5342143a887013a1daae583167dadf6752a7 (patch) | |
tree | 6509ec1b169858ca269ec4867352ad464b720367 /openbsd-compat | |
parent | 9b42d327380e5cd04efde6fb70e1535fecedf0d7 (diff) |
- (dtucker) [configure.ac openbsd-compat/bsd-misc.h] bz#2087: Add a null
implementation of endgrent for platforms that don't have it (eg Android).
Loosely based on a patch from Nathan Osman, ok djm
Diffstat (limited to 'openbsd-compat')
-rw-r--r-- | openbsd-compat/bsd-misc.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h index 430066376..9ebd83c3a 100644 --- a/openbsd-compat/bsd-misc.h +++ b/openbsd-compat/bsd-misc.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: bsd-misc.h,v 1.23 2013/03/14 23:34:27 djm Exp $ */ | 1 | /* $Id: bsd-misc.h,v 1.24 2013/05/29 22:29:09 dtucker Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 1999-2004 Damien Miller <djm@mindrot.org> | 4 | * Copyright (c) 1999-2004 Damien Miller <djm@mindrot.org> |
@@ -110,4 +110,8 @@ int isblank(int); | |||
110 | pid_t getpgid(pid_t); | 110 | pid_t getpgid(pid_t); |
111 | #endif | 111 | #endif |
112 | 112 | ||
113 | #ifndef HAVE_ENDGRENT | ||
114 | # define endgrent() {} | ||
115 | #endif | ||
116 | |||
113 | #endif /* _BSD_MISC_H */ | 117 | #endif /* _BSD_MISC_H */ |