summaryrefslogtreecommitdiff
path: root/libguile/posix.c
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-06-16 21:47:39 +0200
committerLudovic Courtès <ludo@gnu.org>2013-06-16 21:47:39 +0200
commitb16bf64639d457f9cfe8dc7bf80464cd2b86a622 (patch)
tree1b4a7dcb79a3f9fc375b51c3c17e1c5c7efdf151 /libguile/posix.c
parent41f2f14bd97f3889075419a11e7a555463bd9a0d (diff)
downloadguile-b16bf64639d457f9cfe8dc7bf80464cd2b86a622.tar.gz
Fix #ifdefery for `setegid'.
* libguile/posix.c (scm_setegid): Change to #ifdef HAVE_SETEGID.
Diffstat (limited to 'libguile/posix.c')
-rw-r--r--libguile/posix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/posix.c b/libguile/posix.c
index 8651818b0..3e03c86c0 100644
--- a/libguile/posix.c
+++ b/libguile/posix.c
@@ -910,7 +910,7 @@ SCM_DEFINE (scm_seteuid, "seteuid", 1, 0, 0,
#ifdef HAVE_SETEGID
-SCM_DEFINE (scm_setegid, "setegid", 1, 0, 0,
+SCM_DEFINE (scm_setegid, "setegid", 1, 0, 0,
(SCM id),
"Sets the effective group ID to the integer @var{id}, provided the process\n"
"has appropriate privileges. If effective IDs are not supported, the\n"
@@ -921,7 +921,7 @@ SCM_DEFINE (scm_setegid, "setegid", 1, 0, 0,
{
int rv;
-#ifdef HAVE_SETEUID
+#ifdef HAVE_SETEGID
rv = setegid (scm_to_int (id));
#else
rv = setgid (scm_to_int (id));