[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: memset.c needs #include <config.h>?
From: |
Paul Eggert |
Subject: |
Re: memset.c needs #include <config.h>? |
Date: |
Sun, 04 Feb 2007 21:45:07 -0800 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Ben Pfaff <address@hidden> writes:
> I assume the memmem.c problem should be fixed just by including
> <config.h>.
Yes, thanks. getsubopt.c is another. I installed this:
2007-02-04 Paul Eggert <address@hidden>
* lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
* lib/memmem.c [!defined _LIBC]: Include config.h.
Index: lib/getsubopt.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/getsubopt.c,v
retrieving revision 1.4
diff -u -p -r1.4 getsubopt.c
--- lib/getsubopt.c 26 Jan 2007 22:16:55 -0000 1.4
+++ lib/getsubopt.c 5 Feb 2007 05:44:07 -0000
@@ -17,6 +17,11 @@
with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#if !_LIBC
+# include <config.h>
+# include "getsubopt.h"
+#endif
+
#include <stdlib.h>
#include <string.h>
Index: lib/memmem.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/memmem.c,v
retrieving revision 1.3
diff -u -p -r1.3 memmem.c
--- lib/memmem.c 14 May 2005 06:03:58 -0000 1.3
+++ lib/memmem.c 5 Feb 2007 05:44:08 -0000
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,92,93,94,96,97,98,2000,2004 Free Software Foundation,
Inc.
+/* Copyright (C) 1991,92,93,94,96,97,98,2000,2004,2007 Free Software
Foundation, Inc.
This file is part of the GNU C Library.
This program is free software; you can redistribute it and/or modify
@@ -15,6 +15,10 @@
with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+#ifndef _LIBC
+# include <config.h>
+#endif
+
#include <stddef.h>
#include <string.h>