aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/bsd/setegid.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/bsd/setegid.c')
-rw-r--r--sysdeps/unix/bsd/setegid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/bsd/setegid.c b/sysdeps/unix/bsd/setegid.c
index c4a3780f6d..420751bfc1 100644
--- a/sysdeps/unix/bsd/setegid.c
+++ b/sysdeps/unix/bsd/setegid.c
@@ -26,7 +26,7 @@ setegid (gid)
{
if (gid == (gid_t) ~0)
{
- errno = EINVAL;
+ __set_errno (EINVAL);
return -1;
}