configure.in: Check for setreuid and setresuid
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5824
dc483132-0cff-0310-8789-
dd5450dbe970
+Thu May 18 14:43:51 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * in_tkt.c: Use HAVE_SETREUID and HAVE_SETRESUID to define
+ setreuid properly.
+
+ * configure.in: Check for setreuid and setresuid
+
Sun May 7 08:05:56 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* mk_preauth.c: Add <string.h> and either <stdlib.h> or provide
AC_DEFINE(BITS32)
fi
AC_FUNC_CHECK(strsave,AC_DEFINE(HAVE_STRSAVE))
+AC_FUNC_CHECK(setreuid,AC_DEFINE(HAVE_SETREUID))
+AC_FUNC_CHECK(setresuid,AC_DEFINE(HAVE_SETRESUID))
ET_RULES
SubdirLibraryRule([$(OBJS)])
KRB_INCLUDE
* success, or KFAILURE if something goes wrong.
*/
-#ifdef hpux
-/* should be HAS_RESUID */
+#ifndef HAVE_SETREUID
+#ifdef HAVE_SETRESUID
+/* for hpux */
#define setreuid(r,e) setresuid(r,e,-1)
#else
-#ifdef __svr4__
+/* for svr4 */
#define setreuid(r,e) setuid(r)
#endif
#endif