[PATCH] Fix spurious failure of AC_STAT64 test
Andreas Schwab
schwab at redhat.com
Mon Jan 25 10:38:09 UTC 2010
Here is a better patch, pre-POSIX systems might need <sys/types.h>
before <sys/stat.h>.
Andreas.
>From 3de3d6bf5abdf410110aed1f844992304f6ae8b9 Mon Sep 17 00:00:00 2001
From: Andreas Schwab <schwab at redhat.com>
Date: Mon, 25 Jan 2010 11:32:48 +0100
Subject: [PATCH] Fix spurious failure of AC_STAT64 test
* acinclude.m4 (AC_STAT64): Include <sys/types.h> first.
---
acinclude.m4 | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/acinclude.m4 b/acinclude.m4
index 5473b69..da66c64 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -196,7 +196,8 @@ dnl ### A macro to determine whether stat64 is defined.
AC_DEFUN([AC_STAT64],
[AC_MSG_CHECKING(for stat64 in (asm|sys)/stat.h)
AC_CACHE_VAL(ac_cv_type_stat64,
-[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef LINUX
+[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
+#ifdef LINUX
#include <linux/types.h>
#include <asm/stat.h>
#else
--
1.6.6
--
Andreas Schwab, schwab at redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."
More information about the Strace-devel
mailing list