From: Jim Meyering Date: Fri, 25 Jan 2008 20:52:02 +0000 (+0100) Subject: Prefer over "config.h". See autoconf doc for explanation. X-Git-Tag: v0.1~7809 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=f026d2bb5910ad9ed34123f4df7d921226dc39cd;p=gnulib.git Prefer over "config.h". See autoconf doc for explanation. * lib/poll.c: Include , not "config.h". * tests/test-getaddrinfo.c: Likewise. --- diff --git a/ChangeLog b/ChangeLog index a8718ea6a..91f57ae4c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-01-25 Jim Meyering + + Prefer over "config.h". See autoconf doc for explanation. + * lib/poll.c: Include , not "config.h". + * tests/test-getaddrinfo.c: Likewise. + 2008-01-25 Simon Josefsson * modules/sockets-tests: New file. diff --git a/lib/poll.c b/lib/poll.c index ed81dbaaf..50a0803bd 100644 --- a/lib/poll.c +++ b/lib/poll.c @@ -1,7 +1,7 @@ /* Emulation for poll(2) Contributed by Paolo Bonzini. - Copyright 2001, 2002, 2003, 2006, 2007 Free Software Foundation, Inc. + Copyright 2001, 2002, 2003, 2006, 2007, 2008 Free Software Foundation, Inc. This file is part of gnulib. @@ -19,7 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "config.h" +#include #include #include "poll.h" @@ -132,7 +132,7 @@ poll (pfd, nfd, timeout) maxfd = pfd[i].fd; /* Windows use a linear array of sockets (of size FD_SETSIZE). The - descriptor value is not used to address the array. */ + descriptor value is not used to address the array. */ #if defined __CYGWIN__ || (!defined _WIN32 && !defined __WIN32__) if (maxfd > FD_SETSIZE) { diff --git a/tests/test-getaddrinfo.c b/tests/test-getaddrinfo.c index 7763f43f6..00a980b1b 100644 --- a/tests/test-getaddrinfo.c +++ b/tests/test-getaddrinfo.c @@ -1,6 +1,6 @@ /* Test the getaddrinfo module. - Copyright (C) 2006-2007 Free Software Foundation, Inc. + Copyright (C) 2006-2008 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,7 +17,7 @@ /* Written by Simon Josefsson. */ -#include "config.h" +#include #include "getaddrinfo.h" #include "inet_ntop.h" #include