diff options
| author | Sam Hartman <hartmans@mit.edu> | 1995-06-13 22:20:59 +0000 |
|---|---|---|
| committer | Sam Hartman <hartmans@mit.edu> | 1995-06-13 22:20:59 +0000 |
| commit | 6775bb268f215bcc3908626c4b54efc9986416ae (patch) | |
| tree | b809ade09964770516e424ab50a038fb3b60af69 /src | |
| parent | e90c33965c317cf0f763df82ece16815187c2eb8 (diff) | |
| download | krb5-6775bb268f215bcc3908626c4b54efc9986416ae.tar.gz krb5-6775bb268f215bcc3908626c4b54efc9986416ae.tar.xz krb5-6775bb268f215bcc3908626c4b54efc9986416ae.zip | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/kadm/ChangeLog | 9 | ||||
| -rw-r--r-- | 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 35a95e17e7..f89cb83b6b 100644 --- a/src/lib/kadm/ChangeLog +++ b/src/lib/kadm/ChangeLog @@ -1,3 +1,12 @@ +Tue Jun 13 14:37:25 1995 Sam Hartman <hartmans@tardis.MIT.EDU> + + * 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 <epeisach@kangaroo.mit.edu> * Makefile.in (clean-unix): Remove $(UNIX_OBJS) diff --git a/src/lib/kadm/logger.c b/src/lib/kadm/logger.c index d1cccf03e8..190492f1e4 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 |
