From 1af036229677fae744559dc96a0f2ca67c9d1675 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Fri, 21 Nov 2003 14:16:02 +0000 Subject: [PATCH] fix loff_t & caddr_t type checks --- BasiliskII/src/Unix/configure.ac | 6 +++--- BasiliskII/src/Unix/sysdeps.h | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/BasiliskII/src/Unix/configure.ac b/BasiliskII/src/Unix/configure.ac index b2b7e8e5..e460b0ed 100644 --- a/BasiliskII/src/Unix/configure.ac +++ b/BasiliskII/src/Unix/configure.ac @@ -227,7 +227,7 @@ AC_SYS_LARGEFILE dnl Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS(unistd.h fcntl.h sys/time.h sys/mman.h mach/mach.h) +AC_CHECK_HEADERS(unistd.h fcntl.h sys/types.h sys/time.h sys/mman.h mach/mach.h) AC_CHECK_HEADERS(readline.h history.h readline/readline.h readline/history.h) dnl Checks for typedefs, structures, and compiler characteristics. @@ -243,8 +243,8 @@ AC_CHECK_SIZEOF(double, 8) AC_CHECK_SIZEOF(long double, 12) AC_CHECK_SIZEOF(void *, 4) AC_TYPE_OFF_T -AC_CHECK_TYPE(loff_t, off_t) -AC_CHECK_TYPE(caddr_t, [char *]) +AC_CHECK_TYPES(loff_t) +AC_CHECK_TYPES(caddr_t) AC_TYPE_SIZE_T AC_TYPE_SIGNAL AC_HEADER_TIME diff --git a/BasiliskII/src/Unix/sysdeps.h b/BasiliskII/src/Unix/sysdeps.h index 55d31779..73087e26 100644 --- a/BasiliskII/src/Unix/sysdeps.h +++ b/BasiliskII/src/Unix/sysdeps.h @@ -156,7 +156,10 @@ typedef int64 intptr; #endif #ifndef HAVE_LOFF_T - typedef off_t loff_t; +typedef off_t loff_t; +#endif +#ifndef HAVE_CADDR_T +typedef char * caddr_t; #endif /* Time data type for Time Manager emulation */