summaryrefslogtreecommitdiffstats
path: root/lib/libc/nls
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/nls
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/nls')
-rw-r--r--lib/libc/nls/msgcat.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/nls/msgcat.c b/lib/libc/nls/msgcat.c
index c90cefb..9d2d0c5 100644
--- a/lib/libc/nls/msgcat.c
+++ b/lib/libc/nls/msgcat.c
@@ -1,4 +1,4 @@
-/* $Id: msgcat.c,v 1.10 1997/05/10 04:28:17 ache Exp $ */
+/* $Id: msgcat.c,v 1.11 1997/05/10 04:40:40 ache Exp $ */
/***********************************************************
Copyright 1990, by Alfalfa Software Incorporated, Cambridge, Massachusetts.
@@ -101,7 +101,11 @@ int type;
} else {
if ((lang = (char *) getenv("LANG")) == NULL)
lang = "C";
- if ((nlspath = (char *) getenv("NLSPATH")) == NULL || issetugid())
+ if ((nlspath = (char *) getenv("NLSPATH")) == NULL
+#ifndef __NETBSD_SYSCALLS
+ || issetugid()
+#endif
+ )
nlspath = "/usr/share/nls/%L/%N.cat:/usr/share/nls/%N/%L:/usr/local/share/nls/%L/%N.cat:/usr/local/share/nls/%N/%L";
len = strlen(nlspath);
OpenPOWER on IntegriCloud