diff options
author | John Gilmore <gnu@toad.com> | 1995-03-03 07:27:20 +0000 |
---|---|---|
committer | John Gilmore <gnu@toad.com> | 1995-03-03 07:27:20 +0000 |
commit | 32e8c69f65c19347d88a683bf570477cea5e246e (patch) | |
tree | 6ac34c1cec26b2698c90bb4fe806c50236f7295d /src/include/krb5.h | |
parent | 42a93b0f1d60170561b21fc95c93908b288e9aa5 (diff) | |
download | krb5-32e8c69f65c19347d88a683bf570477cea5e246e.tar.gz krb5-32e8c69f65c19347d88a683bf570477cea5e246e.tar.xz krb5-32e8c69f65c19347d88a683bf570477cea5e246e.zip |
Make include files begin to work on the Macintosh
* k5-int.h: Remove krb5/ from #includes. Rearrange #includes
so that time_t is defined before kdb.h is included.
* krb5.h: Include k5-config.h first, so its #define's can
control the rest of the file. If <sys/types.h> is not present,
define u_long, etc, manually.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5070 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/krb5.h')
-rw-r--r-- | src/include/krb5.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/include/krb5.h b/src/include/krb5.h index 4452f9556..865140201 100644 --- a/src/include/krb5.h +++ b/src/include/krb5.h @@ -27,13 +27,21 @@ #ifndef KRB5_GENERAL__ #define KRB5_GENERAL__ +#include "k5-config.h" + #ifndef KRB5_SYSTYPES__ #define KRB5_SYSTYPES__ + +#ifdef HAVE_SYS_TYPES_H #include <sys/types.h> +#else /* HAVE_SYS_TYPES_H */ +typedef unsigned long u_long; +typedef unsigned int u_int; +typedef unsigned short u_short; +typedef unsigned char u_char; +#endif /* HAVE_SYS_TYPES_H */ #endif /* KRB5_SYSTYPES__ */ -#include "k5-config.h" - #include "base-defs.h" #include "hostaddr.h" |