From 0ca4153a373e2af7a9eb3cef003393ab332bc79e Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sat, 24 Sep 2011 16:44:04 -0700 Subject: [PATCH] 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 --- configure.ac | 2 +- src/xlibi18n/lcFile.c | 2 +- 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')