summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-01-22 21:32:00 +0000
committerRoland McGrath <roland@redhat.com>1993-01-22 21:32:00 +0000
commitd56535498b4b4b301e3ff2ed97bfe2b0f9967f91 (patch)
tree6d31d9b106838f89306e5c5a4a9247da903e6439 /misc.c
parent81e8efbcdff7845341ba5018f661757a287baadc (diff)
downloadgunmake-d56535498b4b4b301e3ff2ed97bfe2b0f9967f91.tar.gz
Formerly misc.c.~23~
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/misc.c b/misc.c
index 8b7fcb0..e695c39 100644
--- a/misc.c
+++ b/misc.c
@@ -485,11 +485,13 @@ dep_name (dep)
#ifndef HAVE_UNISTD_H
extern int getuid (), getgid (), geteuid (), getegid ();
-#ifdef USG
extern int setuid (), setgid ();
-#else
-extern int setreuid (), setregid ();
-#endif /* USG. */
+#ifdef HAVE_SETREUID
+extern int setreuid ();
+#endif /* Have setreuid. */
+#ifdef HAVE_SETREGID
+extern int setregid ();
+#endif /* Have setregid. */
#endif /* No <unistd.h>. */
/* Keep track of the user and group IDs for user- and make- access. */