From 6775bb268f215bcc3908626c4b54efc9986416ae Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Tue, 13 Jun 1995 22:20:59 +0000 Subject: [PATCH] Only defining DEVICE_OPEN et al when unix was defined breaks AIX. Instead, assume POSIX behavior (just open the devices), and special case anything that differs (PC, Mac). Currently, there weren't any special cases anyway. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6055 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm/ChangeLog | 9 +++++++++ src/lib/kadm/logger.c | 3 +-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/kadm/ChangeLog b/src/lib/kadm/ChangeLog index 35a95e17e..f89cb83b6 100644 --- a/src/lib/kadm/ChangeLog +++ b/src/lib/kadm/ChangeLog @@ -1,3 +1,12 @@ +Tue Jun 13 14:37:25 1995 Sam Hartman + + * logger.c: Don't check to make sure unix is defined for + DEVICE_OPEN et al. Currently, there are no special cases where + special handling is required; if they are, then they should be + checked for, and the generic case taken if no special case fits. + The previous behavior broke under AIX. + + Sun Jun 11 09:24:06 1995 Ezra Peisach * Makefile.in (clean-unix): Remove $(UNIX_OBJS) diff --git a/src/lib/kadm/logger.c b/src/lib/kadm/logger.c index d1cccf03e..190492f1e 100644 --- a/src/lib/kadm/logger.c +++ b/src/lib/kadm/logger.c @@ -151,14 +151,13 @@ static struct log_entry def_log_entry; * These macros define any special processing that needs to happen for * devices. For unix, of course, this is hardly anything. */ -#if defined(unix) || defined(__unix__) #define DEVICE_OPEN(d, m) fopen(d, m) #define CONSOLE_OPEN(m) fopen("/dev/console", m) #define DEVICE_PRINT(f, m) ((fprintf(f, m) >= 0) ? \ (fprintf(f, "\r\n"), fflush(f), 0) : \ -1) #define DEVICE_CLOSE(d) fclose(d) -#endif /* unix */ + /* * klog_com_err_proc() - Handle com_err(3) messages as specified by the -- 2.26.2