From: Ben Pfaff Date: Wed, 1 Dec 2004 05:40:23 +0000 (+0000) Subject: Use AC_TYPE_OFF_T/HAVE_OFF_T to check for off_t. X-Git-Tag: v0.4.0~216 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fecdcd43e4355c3573733d18951d9eb9c6ed19f3;p=pspp-builds.git Use AC_TYPE_OFF_T/HAVE_OFF_T to check for off_t. --- diff --git a/configure.ac b/configure.ac index dbdfa543..7921bcc3 100644 --- a/configure.ac +++ b/configure.ac @@ -76,6 +76,7 @@ AC_HEADER_TIME AC_C_CONST AC_C_INLINE +AC_TYPE_OFF_T AC_TYPE_SIZE_T AC_STRUCT_TM diff --git a/src/ChangeLog b/src/ChangeLog index fceb26f2..ec2863e8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +Tue Nov 30 21:10:20 2004 Ben Pfaff + + * flip.c: (flip_file) Check for off_t separately from fseeko(), + using AC_TYPE_OFF_T. + Tue Nov 30 08:47:41 2004 Ben Pfaff * flip.c: (flip_file) If fseeko() is not available, use long int diff --git a/src/flip.c b/src/flip.c index 2ded1ed3..7113c8e8 100644 --- a/src/flip.c +++ b/src/flip.c @@ -24,6 +24,9 @@ #include #include #include +#ifdef HAVE_SYS_TYPES_H +#include +#endif #include "alloc.h" #include "case.h" #include "command.h" @@ -416,10 +419,10 @@ flip_file (struct flip_pgm *flip) #ifndef HAVE_FSEEKO #define fseeko fseek +#endif -#ifndef off_t +#ifndef HAVE_OFF_T #define off_t long int -#endif #endif if (fseeko (output_file,