From: Simon Josefsson Date: Fri, 20 Jan 2006 12:59:10 +0000 (+0000) Subject: Fix inet_ntop on mingw32. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1899ce451e9eedd014fdd703380a2a230097a6b8;p=pspp Fix inet_ntop on mingw32. --- diff --git a/ChangeLog b/ChangeLog index 8efc39651e..dbadcea3e7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-01-20 Simon Josefsson + + * modules/inet_ntop (Depends-on): Depend on sys_socket. + 2006-01-19 Simon Josefsson * gnulib-tool: Set check_PROGRAMS. diff --git a/lib/ChangeLog b/lib/ChangeLog index 796e193789..7fb5feb288 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2006-01-20 Simon Josefsson + + * inet_ntop.h: Unconditionally include sys/socket.h. + 2006-01-19 Simon Josefsson * socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly. diff --git a/lib/inet_ntop.h b/lib/inet_ntop.h index 83f5edf337..69c838d390 100644 --- a/lib/inet_ntop.h +++ b/lib/inet_ntop.h @@ -1,5 +1,5 @@ /* Convert internet address from internal to printable, presentable format. - Copyright (C) 2005 Free Software Foundation, Inc. + Copyright (C) 2005, 2006 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 @@ -16,9 +16,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include -#ifdef HAVE_SYS_SOCKET_H -# include -#endif +#include #ifdef HAVE_ARPA_INET_H # include #endif diff --git a/modules/inet_ntop b/modules/inet_ntop index 4a081086d3..5a5b2c4aac 100644 --- a/modules/inet_ntop +++ b/modules/inet_ntop @@ -10,6 +10,7 @@ m4/sockpfaf.m4 Depends-on: restrict socklen +sys_socket configure.ac: gl_INET_NTOP