changeset 6573:d6fe320d0a0d

Fix inet_ntop on mingw32.
author Simon Josefsson <simon@josefsson.org>
date Fri, 20 Jan 2006 12:59:10 +0000
parents df6195e003c4
children c0ef03bcf5e4
files ChangeLog lib/ChangeLog lib/inet_ntop.h modules/inet_ntop
diffstat 4 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-01-20  Simon Josefsson  <jas@extundo.com>
+
+	* modules/inet_ntop (Depends-on): Depend on sys_socket.
+
 2006-01-19  Simon Josefsson  <jas@extundo.com>
 
 	* gnulib-tool: Set check_PROGRAMS.
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,7 @@
+2006-01-20  Simon Josefsson  <jas@extundo.com>
+
+	* inet_ntop.h: Unconditionally include sys/socket.h.
+
 2006-01-19  Simon Josefsson  <jas@extundo.com>
 
 	* socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
--- 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 <sys/types.h>
-#ifdef HAVE_SYS_SOCKET_H
-# include <sys/socket.h>
-#endif
+#include <sys/socket.h>
 #ifdef HAVE_ARPA_INET_H
 # include <arpa/inet.h>
 #endif
--- a/modules/inet_ntop
+++ b/modules/inet_ntop
@@ -10,6 +10,7 @@
 Depends-on:
 restrict
 socklen
+sys_socket
 
 configure.ac:
 gl_INET_NTOP