summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-09-24 16:44:04 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-09-24 16:50:27 -0700
commit0ca4153a373e2af7a9eb3cef003393ab332bc79e (patch)
tree128fcfe18f4ef9bce097e093f0ca6622f91eb99b
parent79594b4d66344f248eb4314ecb78eb81f632c3ab (diff)
Use a configure check for seteuid
HP-UX doesn't have seteuid https://bugs.freedesktop.org/show_bug.cgi?id=1497 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--configure.ac2
-rw-r--r--src/xlibi18n/lcFile.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 9a87453d..71662b85 100644
--- a/configure.ac
+++ b/configure.ac
@@ -220,7 +220,7 @@ AC_CHECK_HEADERS([sys/select.h])
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
-AC_CHECK_FUNCS([strtol])
+AC_CHECK_FUNCS([strtol seteuid])
# Used in lcFile.c (see also --enable-xlocaledir settings below)
XLOCALEDIR_IS_SAFE="no"
AC_CHECK_FUNC([issetugid], [XLOCALEDIR_IS_SAFE="yes"]
diff --git a/src/xlibi18n/lcFile.c b/src/xlibi18n/lcFile.c
index 4e443977..2c06fa2d 100644
--- a/src/xlibi18n/lcFile.c
+++ b/src/xlibi18n/lcFile.c
@@ -36,7 +36,7 @@
/************************************************************************/
-#ifdef __UNIXOS2__
+#ifndef HAVE_SETEUID
# define seteuid setuid
#endif
#define iscomment(ch) ((ch) == '#' || (ch) == '\0')