Fix inet_ntop on mingw32.
authorSimon Josefsson <simon@josefsson.org>
Fri, 20 Jan 2006 12:59:10 +0000 (12:59 +0000)
committerSimon Josefsson <simon@josefsson.org>
Fri, 20 Jan 2006 12:59:10 +0000 (12:59 +0000)
ChangeLog
lib/ChangeLog
lib/inet_ntop.h
modules/inet_ntop

index 8efc396..dbadcea 100644 (file)
--- 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.
index 796e193..7fb5feb 100644 (file)
@@ -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.
index 83f5edf..69c838d 100644 (file)
@@ -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
index 4a08108..5a5b2c4 100644 (file)
@@ -10,6 +10,7 @@ m4/sockpfaf.m4
 Depends-on:
 restrict
 socklen
+sys_socket
 
 configure.ac:
 gl_INET_NTOP