Make include files start to work on the Macintosh
authorJohn Gilmore <gnu@toad.com>
Fri, 3 Mar 1995 07:26:41 +0000 (07:26 +0000)
committerJohn Gilmore <gnu@toad.com>
Fri, 3 Mar 1995 07:26:41 +0000 (07:26 +0000)
* configure.in:  Add checks for sys/types.h and sys/stat.h.
* k5-config.h:  Remove krb5/ from #include.
* sysincl.h:  Avoid <sys/types.h>.  Conditional-include <sys/stat.h>.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5069 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/ChangeLog
src/include/krb5/configure.in
src/include/krb5/k5-config.h
src/include/krb5/sysincl.h

index 149a182b187a3c8de17d288a289c6e9c20e86dcf..fa501a7a7aa26fb372f2e219774639f9a49cbac1 100644 (file)
@@ -1,3 +1,11 @@
+Thu Mar  2 23:21:46 1995  John Gilmore  (gnu at toad.com)
+
+       Make include files start to work on the Macintosh.
+
+       * configure.in:  Add checks for sys/types.h and sys/stat.h.
+       * k5-config.h:  Remove krb5/ from #include.
+       * sysincl.h:  Avoid <sys/types.h>.  Conditional-include <sys/stat.h>.
+
 Thu Mar 2 13:30:00 1995 Keith Vetter (keithv@fusion.com)
 
        * k5-config.h: changed NEED_WINSOCK_H to NEED_SOCKETS
index 7182e2f54ca96698f664ea4154520880be883b2e..afbf44b5206dfbdf27c287c2977f831f51ce7a13 100644 (file)
@@ -43,8 +43,10 @@ dnl
 dnl
 AC_HEADER_CHECK(string.h,AC_DEFINE(USE_STRING_H))
 AC_HEADER_CHECK(stdlib.h,AC_DEFINE(HAS_STDLIB_H),AC_DEFINE(NO_STDLIB_H))
+AC_CHECK_HEADERS(sys/types.h)
 AC_CHECK_HEADERS(sys/file.h)
 AC_CHECK_HEADERS(sys/param.h)
+AC_CHECK_HEADERS(sys/stat.h)
 CHECK_STDARG
 
 AC_FUNC_CHECK([setvbuf],AC_DEFINE(HAS_SETVBUF))
index 117ed87ec7b5d8e5f14c1dd3fa9f5eb58084bdad..340bf7740ccb2f718b25331bed7b6a9cf1b7414e 100644 (file)
@@ -90,7 +90,7 @@ typedef unsigned char u_char;
 
 #ifndef KRB5_AUTOCONF__
 #define KRB5_AUTOCONF__
-#include "krb5/autoconf.h"
+#include "autoconf.h"
 #endif
 
 #ifdef SYSV
index 38f691c8ecc5234495cb2af775378836f73f7ca0..3800d9ecf90c1efd596a62e9baf7eeb2eeee41e0 100644 (file)
@@ -30,7 +30,8 @@
 
 #ifndef KRB5_SYSTYPES__
 #define KRB5_SYSTYPES__
-#include <sys/types.h>                 /* needed for much of the reset */
+/* needed for much of the rest -- but already handled in krb5.h? */
+/* #include <sys/types.h> */
 #endif /* KRB5_SYSTYPES__ */
 
 #include "osconf.h"                    /* USE*TIME_H macros */
 #else
 #include <time.h>
 #endif
+
+#ifdef HAVE_SYS_STAT_H
 #include <sys/stat.h>                  /* struct stat, stat() */
+#endif
+
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>                 /* MAXPATHLEN */
 #endif