summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-07-23 15:28:24 +0000
committerJim Meyering <jim@meyering.net>2000-07-23 15:28:24 +0000
commit6a3f36dacbd122132c8d57bdcedbe930ed1db3d0 (patch)
tree24b437ed24a294b4e68f7c60870f4de44504569e
parentdafbd8d26dd67b312bb343885ed472075f197e8b (diff)
downloadcoreutils-6a3f36dacbd122132c8d57bdcedbe930ed1db3d0.tar.xz
[!HAVE_DECL_GETPWUID]: Declare getpwuid.
[!HAVE_DECL_GETGRGID]: Declare getgrgid. [!HAVE_DECL_GETUID]: Declare getuid.
-rw-r--r--src/sys2.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sys2.h b/src/sys2.h
index 64402a9b6..d8bd622fe 100644
--- a/src/sys2.h
+++ b/src/sys2.h
@@ -321,6 +321,18 @@ char *ttyname ();
uid_t geteuid ();
#endif
+#if !HAVE_DECL_GETPWUID
+struct passwd *getpwuid ();
+#endif
+
+#if !HAVE_DECL_GETGRGID
+struct group *getgrgid ();
+#endif
+
+#if !HAVE_DECL_GETUID
+uid_t getuid ();
+#endif
+
#include "xalloc.h"
#if ! defined HAVE_MEMPCPY && ! defined mempcpy