From 986e4d2a9bf8accf9687a1fdfae807220dfbf3a7 Mon Sep 17 00:00:00 2001 From: Keith Vetter Date: Tue, 7 Mar 1995 20:50:46 +0000 Subject: [PATCH] Ported the posix directory for the PC--one file git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5077 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/posix/ChangeLog | 6 ++++++ src/lib/krb5/posix/Makefile.in | 10 +++++++++- src/lib/krb5/posix/syslog.c | 12 ++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/posix/ChangeLog b/src/lib/krb5/posix/ChangeLog index 048ee35c7..210dd791d 100644 --- a/src/lib/krb5/posix/ChangeLog +++ b/src/lib/krb5/posix/ChangeLog @@ -1,3 +1,9 @@ +Tue Mar 7 12:30:45 1995 Keith Vetter (keithv@fusion.com) + + * syslog.c: a disabled stub provided for satisfying the linker + on the pc. + * Makefile.in: made to work on the pc but only for syslog.c + Tue Feb 28 01:05:42 1995 John Gilmore (gnu at toad.com) * daemon.c, memmove.c, strcasecmp.c, strdup.c: Avoid diff --git a/src/lib/krb5/posix/Makefile.in b/src/lib/krb5/posix/Makefile.in index e6a6698f8..4c43f098c 100644 --- a/src/lib/krb5/posix/Makefile.in +++ b/src/lib/krb5/posix/Makefile.in @@ -1,6 +1,14 @@ CFLAGS = $(CCOPTS) $(DEFS) LDFLAGS = -g -all:: $(OBJS) +##DOSBUILDTOP = ..\..\.. +##DOSLIBNAME=..\krb5.lib +##DOS!include $(BUILDTOP)\config\windows.in OBJS = @LIBOBJS@ + +all:: all-$(WHAT) + +all-unix:: $(OBJS) + +all-windows:: syslog.obj diff --git a/src/lib/krb5/posix/syslog.c b/src/lib/krb5/posix/syslog.c index 659d59fef..4e5510f1f 100644 --- a/src/lib/krb5/posix/syslog.c +++ b/src/lib/krb5/posix/syslog.c @@ -33,6 +33,7 @@ * Modified to use UNIX domain IPC by Ralph Campbell */ +#ifndef _MSDOS #ifdef __STDC__ #include #else @@ -236,3 +237,14 @@ setlogmask(pmask) LogMask = pmask; return (omask); } +#else /* _MSDOS */ + +/* Windows doesn't have the concept of a system log, so just +** do nothing here. +*/ +void +syslog(int pri, const char *fmt, ...) +{ + return; +} +#endif -- 2.26.2