arpa/inet: fix mingw compilation warning
authorEric Blake <eblake@redhat.com>
Wed, 24 Mar 2010 23:25:49 +0000 (17:25 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 25 Mar 2010 22:47:43 +0000 (16:47 -0600)
Mingw doesn't have <arpa/inet.h>, so a conditional use of the
pragma was never encountered, and led to mingw's gcc issuing
warnings about duplicate declarations under -Wredundant-decls.
Making the #pragma unconditional (as was already done in at
least fcntl.in.h) shuts up gcc.

* lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
Reported by Matthew Bolte.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/arpa_inet.in.h

index 3384fb7..d1e075f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-03-25  Eric Blake  <eblake@redhat.com>
+
+       arpa/inet: fix mingw compilation warning
+       * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
+       Reported by Matthew Bolte.
+
 2010-03-25  Bruno Haible  <bruno@clisp.org>
 
        Avoid collision between gnulib wrapper and libintl wrapper.
index a120691..c1d088b 100644 (file)
    along with this program; if not, write to the Free Software Foundation,
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
+# if __GNUC__ >= 3
+@PRAGMA_SYSTEM_HEADER@
+# endif
+
 #ifndef _GL_ARPA_INET_H
 
 /* Gnulib's sys/socket.h is responsible for pulling in winsock2.h etc
 
 #if @HAVE_ARPA_INET_H@
 
-# if __GNUC__ >= 3
-@PRAGMA_SYSTEM_HEADER@
-# endif
-
 /* The include_next requires a split double-inclusion guard.  */
 # @INCLUDE_NEXT@ @NEXT_ARPA_INET_H@