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>
This commit is contained in:
Jeremy Huddleston 2011-09-24 16:44:04 -07:00
parent 79594b4d66
commit 0ca4153a37
2 changed files with 2 additions and 2 deletions

View file

@ -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"]

View file

@ -36,7 +36,7 @@
/************************************************************************/
#ifdef __UNIXOS2__
#ifndef HAVE_SETEUID
# define seteuid setuid
#endif
#define iscomment(ch) ((ch) == '#' || (ch) == '\0')