diff options
author | Eric Blake <eblake@redhat.com> | 2010-03-24 17:25:49 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2010-03-25 16:47:43 -0600 |
commit | 1f87c50a60309f7ae9aafbc7d614f2760f7ded99 (patch) | |
tree | 64796a8f119d3ef405c4a64c4ecb16ddcb53133e /lib/arpa_inet.in.h | |
parent | 784afc2436790a775b5a48e610e9d532885c692e (diff) | |
download | gnulib-1f87c50a60309f7ae9aafbc7d614f2760f7ded99.tar.gz |
arpa/inet: fix mingw compilation warning
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>
Diffstat (limited to 'lib/arpa_inet.in.h')
-rw-r--r-- | lib/arpa_inet.in.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/arpa_inet.in.h b/lib/arpa_inet.in.h index a1206918c0..c1d088b8bc 100644 --- a/lib/arpa_inet.in.h +++ b/lib/arpa_inet.in.h @@ -16,6 +16,10 @@ 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 @@ -27,10 +31,6 @@ #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@ |