diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/krb5/ChangeLog | 6 | ||||
| -rw-r--r-- | src/include/krb5/k5-config.h | 20 |
2 files changed, 8 insertions, 18 deletions
diff --git a/src/include/krb5/ChangeLog b/src/include/krb5/ChangeLog index ed7c722641..394b89ee95 100644 --- a/src/include/krb5/ChangeLog +++ b/src/include/krb5/ChangeLog @@ -1,3 +1,9 @@ +Wed Mar 22 11:37:24 1995 Keith Vetter (keithv@fusion.com) + + * k5-config.h: added HAVE_SYS_TYPES_H. Cleaned up the loading + of sys/types.h which john added earlier. Specifically, we always + have it and it's missing some typedefs used by this code. + Tue Mar 21 18:42:23 1995 Keith Vetter (keithv@fusion.com) * k5-config.h: PC: NO_PASSWORD defined and files opened in binary mode. diff --git a/src/include/krb5/k5-config.h b/src/include/krb5/k5-config.h index fdfd3121dc..080440fe60 100644 --- a/src/include/krb5/k5-config.h +++ b/src/include/krb5/k5-config.h @@ -57,36 +57,20 @@ #define HAS_VOID_TYPE #define KRB5_PROVIDE_PROTOTYPES #define HAVE_STDARG_H +#define HAVE_SYS_TYPES_H #ifndef _SIZE_T_DEFINED typedef unsigned int size_t; #define _SIZE_T_DEFINED #endif -/* FIXME, Keith! I'm not sure how it ever worked. - Typedeffing u_long and u_char twice will break. Please eliminate either - the DOS-only _U_TYPES_DEFINED stuff, or the HAVE_SYS_TYPES_H stuff in - the DOS section of this file. The KRB5_SYSTYPES section below was - previously in ../krb5.h, but I moved it into k5-config.h because - there was an interaction on Unix needing <sys/types.h> before - defining the networking include files in k5-config.h. */ -#ifndef _U_TYPES_DEFINED -typedef unsigned long u_long; -typedef unsigned char u_char; -#define _U_LONG_DEFINED -#endif - #ifndef KRB5_SYSTYPES__ #define KRB5_SYSTYPES__ - -#ifdef HAVE_SYS_TYPES_H /* From autoconf.h */ #include <sys/types.h> -#else /* HAVE_SYS_TYPES_H */ -typedef unsigned long u_long; +typedef unsigned long u_long; /* Not part of sys/types.h on the pc */ typedef unsigned int u_int; typedef unsigned short u_short; typedef unsigned char u_char; -#endif /* HAVE_SYS_TYPES_H */ #endif /* KRB5_SYSTYPES__ */ #ifndef INTERFACE |
