about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-04-17 03:33:58 +0000
committerRoland McGrath <roland@gnu.org>2001-04-17 03:33:58 +0000
commitcb21f2421208c0c4bc1df0d6be7fcd786f2a51ed (patch)
treec37d9646f051912928cb84a7b68dd344cc6bc8f4
parent8c4b05d02faf17b9f63a7071e5f1852706d85cbd (diff)
downloadglibc-cb21f2421208c0c4bc1df0d6be7fcd786f2a51ed.tar.gz
glibc-cb21f2421208c0c4bc1df0d6be7fcd786f2a51ed.tar.xz
glibc-cb21f2421208c0c4bc1df0d6be7fcd786f2a51ed.zip
2001-04-16 Roland McGrath <roland@frob.com>
	* sysdeps/posix/euidaccess.c: Don't #include <limits.h> or try to
	define NGROUPS_MAX; we don't use it here.
-rw-r--r--sysdeps/posix/euidaccess.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/sysdeps/posix/euidaccess.c b/sysdeps/posix/euidaccess.c
index 7f228b5643..2c68629595 100644
--- a/sysdeps/posix/euidaccess.c
+++ b/sysdeps/posix/euidaccess.c
@@ -1,5 +1,5 @@
 /* Check if effective user id can access file
-   Copyright (C) 1990,91,95,96,97,98,99,2000 Free Software Foundation, Inc.
+   Copyright (C) 1990,91,95,96,97,98,99,2000,01 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -43,22 +43,11 @@
 #include <unistd.h>
 #endif
 
-#ifdef _POSIX_VERSION
-#include <limits.h>
-#if !defined(NGROUPS_MAX) || NGROUPS_MAX < 1
-#undef NGROUPS_MAX
-#define NGROUPS_MAX sysconf (_SC_NGROUPS_MAX)
-#endif /* NGROUPS_MAX */
-
-#else /* not _POSIX_VERSION */
+#ifndef _POSIX_VERSION
 uid_t getuid ();
 gid_t getgid ();
 uid_t geteuid ();
 gid_t getegid ();
-#include <sys/param.h>
-#if !defined(NGROUPS_MAX) && defined(NGROUPS)
-#define NGROUPS_MAX NGROUPS
-#endif /* not NGROUPS_MAX and NGROUPS */
 #endif /* not POSIX_VERSION */
 
 #include <errno.h>