Move HAVE__GL_CLOSE_FD_MAYBE_SOCKET macro.
authorBruno Haible <bruno@clisp.org>
Sat, 25 Oct 2008 20:48:11 +0000 (22:48 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 25 Oct 2008 20:48:11 +0000 (22:48 +0200)
ChangeLog
lib/sys_socket.in.h
lib/unistd.in.h
m4/sys_socket_h.m4

index 1516ccc..cb538aa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-10-25  Bruno Haible  <bruno@clisp.org>
+
+       * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
+       here ...
+       * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
+       * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
+       gl_UNISTD_H_DEFAULTS.
+       
 2008-10-25  Eric Blake  <ebb9@byu.net>
 
        signbit: avoid spurious compiler failure
index 91a6b33..83a50bd 100644 (file)
@@ -388,11 +388,6 @@ extern int rpl_shutdown (int, int);
 #  define select               select_used_without_including_sys_select_h
 # endif
 
-# if @GNULIB_CLOSE@ && @HAVE_WINSOCK2_H@
-/* Need a gnulib internal function.  */
-#  define HAVE__GL_CLOSE_FD_MAYBE_SOCKET 1
-# endif
-
 # ifdef __cplusplus
 }
 # endif
index bfa3d49..d949c99 100644 (file)
@@ -78,6 +78,10 @@ extern int chown (const char *file, uid_t uid, gid_t gid);
 
 
 #if @GNULIB_CLOSE@
+# if @UNISTD_H_HAVE_WINSOCK2_H@
+/* Need a gnulib internal function.  */
+#  define HAVE__GL_CLOSE_FD_MAYBE_SOCKET 1
+# endif
 # if @REPLACE_CLOSE@
 /* Automatically included by modules that need a replacement for close.  */
 #  undef close
index b7b18e5..9d2d92c 100644 (file)
@@ -1,4 +1,4 @@
-# sys_socket_h.m4 serial 11
+# sys_socket_h.m4 serial 12
 dnl Copyright (C) 2005-2008 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -100,7 +100,6 @@ AC_DEFUN([gl_SYS_SOCKET_MODULE_INDICATOR],
 
 AC_DEFUN([gl_SYS_SOCKET_H_DEFAULTS],
 [
-  AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) dnl for GNULIB_CLOSE
   GNULIB_SOCKET=0;      AC_SUBST([GNULIB_SOCKET])
   GNULIB_CONNECT=0;     AC_SUBST([GNULIB_CONNECT])
   GNULIB_ACCEPT=0;      AC_SUBST([GNULIB_ACCEPT])