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/bsd-misc.h | |
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/bsd-misc.h')
-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 43006637..9ebd83c3 100644 --- a/openbsd-compat/bsd-misc.h +++ b/openbsd-compat/bsd-misc.h @@ -1,4 +1,4 @@ -/* $Id: bsd-misc.h,v 1.23 2013/03/14 23:34:27 djm Exp $ */ +/* $Id: bsd-misc.h,v 1.24 2013/05/29 22:29:09 dtucker Exp $ */ /* * Copyright (c) 1999-2004 Damien Miller <djm@mindrot.org> @@ -110,4 +110,8 @@ int isblank(int); pid_t getpgid(pid_t); #endif +#ifndef HAVE_ENDGRENT +# define endgrent() {} +#endif + #endif /* _BSD_MISC_H */ |