checkpoint

This commit is contained in:
Mark Andrews 2001-04-04 06:18:40 +00:00
parent ce664dbd95
commit 9680305c8b
2 changed files with 6 additions and 7 deletions

View file

@ -18,7 +18,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
AC_DIVERT_POP()dnl
AC_REVISION($Revision: 1.19 $)
AC_REVISION($Revision: 1.20 $)
AC_INIT(resolv/herror.c)
AC_PREREQ(2.13)
@ -1481,8 +1481,7 @@ AC_SUBST(SETGRENT_VOID)
AC_TRY_COMPILE([
#include <grp.h>
struct group *
getgrgid_r(const gid_t gid, struct group *gptr,
char *buf, int buflen) {}
getgrgid_r(gid_t gid, struct group *gptr, char *buf, int buflen) {}
],[return (0);],
[POSIX_GETGRGID_R="#define POSIX_GETGRGID_R 1"],
[POSIX_GETGRGID_R="#undef POSIX_GETGRGID_R"])

View file

@ -16,7 +16,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
static const char rcsid[] = "$Id: getgrent_r.c,v 1.1 2001/03/29 06:31:45 marka Exp $";
static const char rcsid[] = "$Id: getgrent_r.c,v 1.2 2001/04/04 06:18:40 marka Exp $";
#endif /* LIBC_SCCS and not lint */
#include <port_before.h>
@ -76,11 +76,11 @@ getgrnam_r(const char *name, struct group *gptr,
/* POSIX 1003.1c */
#ifdef POSIX_GETGRGID_R
int
__posix_getgrgid_r(const gid_t gid, struct group *gptr,
__posix_getgrgid_r(gid_t gid, struct group *gptr,
char *buf, int buflen, struct group **result) {
#else /* POSIX_GETGRGID_R */
int
getgrgid_r(const gid_t gid, struct group *gptr,
getgrgid_r(gid_t gid, struct group *gptr,
char *buf, size_t buflen, struct group **result) {
#endif /* POSIX_GETGRGID_R */
struct group *ge = getgrgid(gid);
@ -98,7 +98,7 @@ getgrgid_r(const gid_t gid, struct group *gptr,
#ifdef POSIX_GETGRGID_R
struct group *
getgrgid_r(const gid_t gid, struct group *gptr,
getgrgid_r(gid_t gid, struct group *gptr,
char *buf, int buflen) {
struct group *ge = getgrgid(gid);
int res;