autoconf-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Autoconf source repository branch, master, updated. v2.68-10-g


From: Paul Eggert
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.68-10-g234d3c3
Date: Sat, 20 Nov 2010 23:27:23 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=234d3c32688c335ee19e8d7f409e713badb5c669

The branch, master has been updated
       via  234d3c32688c335ee19e8d7f409e713badb5c669 (commit)
      from  5668bc97911b37eba62f3b1521cfd5285a76cc67 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 234d3c32688c335ee19e8d7f409e713badb5c669
Author: Paul Eggert <address@hidden>
Date:   Sat Nov 20 15:26:39 2010 -0800

    autoconf: don't assume sys/stat.h and sys/types.h when testing C89
    
    Problem reported by Patrick Pelissier in
    <http://lists.gnu.org/archive/html/bug-autoconf/2010-11/msg00019.html>.
    * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Don't include sys/types.h
    and sys/stat.h.  Instead, define a dummy struct stat.  C89 doesn't
    guarantee sys/types.h and sys/stat.h.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    9 +++++++++
 lib/autoconf/c.m4 |    3 +--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e34119c..62358ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-11-20  Paul Eggert  <address@hidden>
+
+       autoconf: don't assume sys/stat.h and sys/types.h when testing C89
+       Problem reported by Patrick Pelissier in
+       <http://lists.gnu.org/archive/html/bug-autoconf/2010-11/msg00019.html>.
+       * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Don't include sys/types.h
+       and sys/stat.h.  Instead, define a dummy struct stat.  C89 doesn't
+       guarantee sys/types.h and sys/stat.h.
+
 2010-11-10  Reuben Thomas  <address@hidden>  (tiny change)
 
        docs: avoid first person, and credit history to David MacKenzie
diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4
index 233644a..a873ccd 100644
--- a/lib/autoconf/c.m4
+++ b/lib/autoconf/c.m4
@@ -1102,8 +1102,7 @@ AC_DEFUN([_AC_PROG_CC_C89],
 [_AC_C_STD_TRY([c89],
 [[#include <stdarg.h>
 #include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
+struct stat;
 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 struct buf { int x; };
 FILE * (*rcsopen) (struct buf *, struct stat *, int);


hooks/post-receive
-- 
GNU Autoconf source repository



reply via email to

[Prev in Thread] Current Thread [Next in Thread]