Fix check for ino_t to work with both autoconf2.50 and autoconf2.13.
authorMartin Pool <mbp@samba.org>
Mon, 6 Aug 2001 08:49:19 +0000 (08:49 +0000)
committerMartin Pool <mbp@samba.org>
Mon, 6 Aug 2001 08:49:19 +0000 (08:49 +0000)
configure.in
rsync.h

index 7148143..21ac489 100644 (file)
@@ -76,7 +76,7 @@ AC_TYPE_SIZE_T
 AC_TYPE_PID_T
 AC_TYPE_GETGROUPS
 AC_STRUCT_ST_RDEV
-AC_CHECK_TYPE(ino_t,unsigned, [ ])
+AC_CHECK_TYPE([ino_t], [unsigned])
 
 AC_CACHE_CHECK([for errno in errno.h],rsync_cv_errno, [
     AC_TRY_COMPILE([#include <errno.h>],[int i = errno],
diff --git a/rsync.h b/rsync.h
index cb138be..e5b5038 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -256,9 +256,11 @@ enum logcode {FNONE=0, FERROR=1, FINFO=2, FLOG=3 };
 #endif
 
 #if HAVE_SHORT_INO_T
-#define INO_T uint32
+#  define INO_T uint32
+#elif HAVE_INO_T
+#  define INO_T ino_t
 #else
-#define INO_T ino_t
+#  define INO_T unsigned
 #endif
 
 #ifndef MIN