Add comment.
authorBruno Haible <bruno@clisp.org>
Mon, 10 Aug 2009 20:53:54 +0000 (22:53 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 10 Aug 2009 20:53:54 +0000 (22:53 +0200)
ChangeLog
m4/close.m4
modules/ioctl

index 8bbb54f..cf2f2b5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-08-10  Bruno Haible  <bruno@clisp.org>
 
+       * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
+       * modules/ioctl (configure.ac): Likewise.
+
+2009-08-10  Bruno Haible  <bruno@clisp.org>
+
        Avoid collision between gnulib wrapper and libintl wrapper.
        * lib/stdio-write.c (printf): Don't define if a printf wrapper is
        already defined in intl/printf.c.
index b1189f5..a6623a3 100644 (file)
@@ -1,4 +1,4 @@
-# close.m4 serial 3
+# close.m4 serial 4
 dnl Copyright (C) 2008-2009 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,6 +9,9 @@ AC_DEFUN([gl_FUNC_CLOSE],
   m4_ifdef([gl_PREREQ_SYS_H_WINSOCK2], [
     gl_PREREQ_SYS_H_WINSOCK2
     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
+      dnl Even if the 'socket' module is not used here, another part of the
+      dnl application may use it and pass file descriptors that refer to
+      dnl sockets to the close() function. So enable the support for sockets.
       gl_REPLACE_CLOSE
     fi
   ])
index 08e5955..fbc8dc8 100644 (file)
@@ -13,6 +13,9 @@ errno
 configure.ac:
 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
 if test "$ac_cv_header_winsock2_h" = yes; then
+  dnl Even if the 'socket' module is not used here, another part of the
+  dnl application may use it and pass file descriptors that refer to
+  dnl sockets to the ioctl() function. So enable the support for sockets.
   AC_LIBOBJ([ioctl])
   gl_REPLACE_SYS_IOCTL_H
 fi