[PATCH] fix AC_STAT64 for Linux

Roland McGrath roland at redhat.com
Sun Dec 15 18:58:06 UTC 2002


This change was necessary for the struct stat64 check to work on my
powerpc-linux system.  (Only the include is necessary, the #ifdef change
is just a cleanup.)

Ok to commit?


Thanks,
Roland


2002-12-15  Roland McGrath  <roland at redhat.com>

	* aclocal.m4 (AC_STAT64): Include <linux/types.h> before <asm/stat.h>
	in test.  Test our own #ifdef LINUX rather than predefined `linux'.

--- aclocal.m4.~1.13.~	Thu May 23 04:48:58 2002
+++ aclocal.m4	Sun Dec 15 18:55:46 2002
@@ -310,7 +310,8 @@ dnl ### A macro to determine whether sta
 AC_DEFUN(AC_STAT64,
 [AC_MSG_CHECKING(for stat64 in (asm|sys)/stat.h)
 AC_CACHE_VAL(ac_cv_type_stat64,
-[AC_TRY_COMPILE([#ifdef linux
+[AC_TRY_COMPILE([#ifdef LINUX
+#include <linux/types.h>
 #include <asm/stat.h>
 #else
 #include <sys/stat.h>




More information about the Strace-devel mailing list