From ed081024933a7c415cb2872f847357102cf6595b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 5 Feb 2007 05:44:11 +0000 Subject: [PATCH] * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h. * lib/memmem.c [!defined _LIBC]: Include config.h. --- ChangeLog | 5 +++++ lib/getsubopt.c | 5 +++++ lib/memmem.c | 6 +++++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 31af0c7a4..25c94ae52 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-02-04 Paul Eggert + + * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h. + * lib/memmem.c [!defined _LIBC]: Include config.h. + 2007-02-04 Bruno Haible * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the diff --git a/lib/getsubopt.c b/lib/getsubopt.c index 4e9f1b084..485a42492 100644 --- a/lib/getsubopt.c +++ b/lib/getsubopt.c @@ -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 +# include "getsubopt.h" +#endif + #include #include diff --git a/lib/memmem.c b/lib/memmem.c index b1189779e..e8822221c 100644 --- a/lib/memmem.c +++ b/lib/memmem.c @@ -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 +#endif + #include #include -- 2.11.0