* 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
+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
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))
#ifndef KRB5_AUTOCONF__
#define KRB5_AUTOCONF__
-#include "krb5/autoconf.h"
+#include "autoconf.h"
#endif
#ifdef SYSV
#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