summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/setrunelocale.c
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-01-15 09:58:08 +0000
committerjb <jb@FreeBSD.org>1998-01-15 09:58:08 +0000
commite400ec32db9124edbe3587b88c9c7665cf26ac53 (patch)
tree2c7dc933c13a159c7ceb6e586bc362f9806dfd8e /lib/libc/locale/setrunelocale.c
parentddfe5471a6adeb66dc5f383151ca19757d08bde5 (diff)
downloadFreeBSD-src-e400ec32db9124edbe3587b88c9c7665cf26ac53.zip
FreeBSD-src-e400ec32db9124edbe3587b88c9c7665cf26ac53.tar.gz
Add #ifndef __NETBSD_SYSCALLS around calls to issetugid() which
do not exist in NetBSD 1.3.
Diffstat (limited to 'lib/libc/locale/setrunelocale.c')
-rw-r--r--lib/libc/locale/setrunelocale.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c
index 2d94e75..c65628e 100644
--- a/lib/libc/locale/setrunelocale.c
+++ b/lib/libc/locale/setrunelocale.c
@@ -87,7 +87,11 @@ _xpg4_setrunelocale(encoding)
if (_PathLocale == NULL) {
char *p = getenv("PATH_LOCALE");
- if (p != NULL && !issetugid()) {
+ if (p != NULL
+#ifndef __NETBSD_SYSCALLS
+ && !issetugid()
+#endif
+ ) {
if (strlen(p) + 1/*"/"*/ + ENCODING_LEN +
1/*"/"*/ + CATEGORY_LEN >= PATH_MAX)
return(EFAULT);
OpenPOWER on IntegriCloud