-# close.m4 serial 1
-dnl Copyright (C) 2008 Free Software Foundation, Inc.
+# close.m4 serial 3
+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,
dnl with or without modifications, as long as this notice is preserved.
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
+ gl_REPLACE_CLOSE
+ fi
+ ])
])
AC_DEFUN([gl_REPLACE_CLOSE],
AC_LIBOBJ([close])
fi
REPLACE_CLOSE=1
+ gl_REPLACE_FCLOSE
])