* getuid.c: Simple getuid() to fake out single-user systems.
* strcasecmp.c: Remove duplicated <sys/types.h> and u_char.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5300
dc483132-0cff-0310-8789-
dd5450dbe970
+Tue Mar 28 18:46:55 1995 John Gilmore (gnu at toad.com)
+
+ * configure.in (AC_REPLACE_FUNCS): Add getuid to the list.
+ * getuid.c: Simple getuid() to fake out single-user systems.
+ * strcasecmp.c: Remove duplicated <sys/types.h> and u_char.
+
Fri Mar 17 20:24:51 1995 John Gilmore (gnu at toad.com)
* Makefile.in (LDFLAGS): Zap duplicate.
KRB_INCLUDE
AC_CONST
AC_HEADER_CHECK(paths.h,AC_DEFINE(HAS_PATHS_H))
-AC_REPLACE_FUNCS(vfprintf vsprintf strdup strcasecmp strerror memmove daemon)
+AC_REPLACE_FUNCS(vfprintf vsprintf strdup strcasecmp strerror memmove daemon getuid)
AC_FUNC_CHECK(vsyslog, ,[LIBOBJS="[$]LIBOBJS syslog.o"])
AC_FUNC_CHECK(setsid,AC_DEFINE(HAS_SETSID))
V5_AC_OUTPUT_MAKEFILE
--- /dev/null
+/* Very simple getuid() for systems that don't have one. */
+
+int
+getuid()
+{
+ return 42;
+}
*/
#include "k5-int.h"
-#include <sys/types.h>
#ifdef USE_STRING_H
#include <string.h>
#else
/* based on @(#)strcasecmp.c 5.10 (Berkeley) 1/26/91 */
-typedef unsigned char u_char;
-
/*
* This array is designed for mapping upper and lower case letter
* together for a case independent comparison. The mappings are