From 3ee8ad63cc3317c42129f44565234159f6a9959b Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Wed, 29 Mar 1995 02:49:44 +0000 Subject: [PATCH] * configure.in (AC_REPLACE_FUNCS): Add getuid to the list. * getuid.c: Simple getuid() to fake out single-user systems. * strcasecmp.c: Remove duplicated and u_char. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5300 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/posix/ChangeLog | 6 ++++++ src/lib/krb5/posix/configure.in | 2 +- src/lib/krb5/posix/getuid.c | 7 +++++++ src/lib/krb5/posix/strcasecmp.c | 3 --- 4 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 src/lib/krb5/posix/getuid.c diff --git a/src/lib/krb5/posix/ChangeLog b/src/lib/krb5/posix/ChangeLog index ec7bd7795..c310a5e4a 100644 --- a/src/lib/krb5/posix/ChangeLog +++ b/src/lib/krb5/posix/ChangeLog @@ -1,3 +1,9 @@ +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 and u_char. + Fri Mar 17 20:24:51 1995 John Gilmore (gnu at toad.com) * Makefile.in (LDFLAGS): Zap duplicate. diff --git a/src/lib/krb5/posix/configure.in b/src/lib/krb5/posix/configure.in index cf8d9a917..9cf88f3ef 100644 --- a/src/lib/krb5/posix/configure.in +++ b/src/lib/krb5/posix/configure.in @@ -6,7 +6,7 @@ SubdirLibraryRule([${OBJS}]) 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 diff --git a/src/lib/krb5/posix/getuid.c b/src/lib/krb5/posix/getuid.c new file mode 100644 index 000000000..aefaae719 --- /dev/null +++ b/src/lib/krb5/posix/getuid.c @@ -0,0 +1,7 @@ +/* Very simple getuid() for systems that don't have one. */ + +int +getuid() +{ + return 42; +} diff --git a/src/lib/krb5/posix/strcasecmp.c b/src/lib/krb5/posix/strcasecmp.c index efc0ecaa4..cec8c1ed2 100644 --- a/src/lib/krb5/posix/strcasecmp.c +++ b/src/lib/krb5/posix/strcasecmp.c @@ -32,7 +32,6 @@ */ #include "k5-int.h" -#include #ifdef USE_STRING_H #include #else @@ -41,8 +40,6 @@ /* 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 -- 2.26.2