bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH] lib/malloca.c, lib/md5.c, lib/sha1.c: don't include <config.h> u


From: Peter Simons
Subject: [PATCH] lib/malloca.c, lib/md5.c, lib/sha1.c: don't include <config.h> unless HAVE_CONFIG_H is defined
Date: Wed, 24 Feb 2010 13:00:31 +0100

---
 ChangeLog     |    5 +++++
 lib/malloca.c |    2 ++
 lib/md5.c     |    2 ++
 lib/sha1.c    |    2 ++
 4 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 501c267..8df0a56 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-24  Peter Simons  <address@hidden>
+
+        lib/malloca.c, lib/md5.c, lib/sha1.c: don't include <config.h> unless
+        HAVE_CONFIG_H is defined
+
 2010-02-23  Eric Blake  <address@hidden>
 
        warn-on-use: work with old autoconf
diff --git a/lib/malloca.c b/lib/malloca.c
index b0e6ab6..7d5c6a5 100644
--- a/lib/malloca.c
+++ b/lib/malloca.c
@@ -16,7 +16,9 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
+#ifdef HAVE_CONFIG_H
 #include <config.h>
+#endif
 
 /* Specification.  */
 #include "malloca.h"
diff --git a/lib/md5.c b/lib/md5.c
index 4480ba8..ff3fc6d 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -20,7 +20,9 @@
 
 /* Written by Ulrich Drepper <address@hidden>, 1995.  */
 
+#ifdef HAVE_CONFIG_H
 #include <config.h>
+#endif
 
 #include "md5.h"
 
diff --git a/lib/sha1.c b/lib/sha1.c
index 1ea84f6..f290f47 100644
--- a/lib/sha1.c
+++ b/lib/sha1.c
@@ -23,7 +23,9 @@
       Robert Klep <address@hidden>  -- Expansion function fix
 */
 
+#ifdef HAVE_CONFIG_H
 #include <config.h>
+#endif
 
 #include "sha1.h"
 
-- 
1.7.0





reply via email to

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