Commit 10f664db authored by Niels Möller's avatar Niels Möller

If seteuid is not available, but setresuid is,

let config.h #define seteuid in terms of setresuid.

Rev: configure.ac:1.44
parent 2a91fb93
......@@ -528,8 +528,6 @@ LSH_FUNC_STRSIGNAL
AC_FUNC_MEMCMP
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(select socket strtol alarm)
# HP-UX doesn't have seteuid
AC_CHECK_FUNCS(seteuid setresuid)
AC_CHECK_FUNCS(getrusage gettimeofday)
AC_CHECK_FUNCS(getspnam)
AC_CHECK_FUNCS(vsnprintf inet_aton)
......@@ -541,6 +539,16 @@ AC_CHECK_FUNCS(setrlimit)
AC_FUNC_GETPGRP
AC_CHECK_FUNCS(syslog)
# HP-UX doesn't have seteuid
AC_CHECK_FUNCS(seteuid setresuid)
AH_BOTTOM(
[#if !HAVE_SETEUID
# if HAVE_SETRESUID
# define seteuid(uid) setresuid(-1, (uid), -1)
# endif
#endif])
# FIXME: Is there a better way in autoconf 2.50?
AC_CACHE_CHECK([if netdb.h defines AI_NUMERICHOST],
lsh_cv_sys_ai_numerichost,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment