don't need off64_t code on systems where off_t is already 64 bits
authorAndrew Tridgell <tridge@samba.org>
Wed, 6 May 1998 08:01:00 +0000 (08:01 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 6 May 1998 08:01:00 +0000 (08:01 +0000)
configure.in

index 14d8056..6e090e5 100644 (file)
@@ -59,7 +59,7 @@ echo no)
 echo $ac_n "checking for off64_t ... $ac_c"
 AC_TRY_RUN([#include <stdio.h>
 #include <sys/stat.h>
-main() { struct stat64 st; off64_t s; exit((lstat64("/dev/null", &st)==0)?0:1); }],
+main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) return 1; exit((lstat64("/dev/null", &st)==0)?0:1); }],
 echo yes;AC_DEFINE(HAVE_OFF64_T), 
 echo no)