mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 12:20:26 +02:00
This updates Gnulib to v0.0-4889-ge375fe3. * m4/gnulib-cache.m4: Add `accept', `bind', `close', `connect', `getpeername', `getsockname', `getsockopt', `listen', `malloc', `malloca', `recv', `recvfrom', `send', `sendto', `setsockopt', `shutdown', `socket', and `sockets', requested by Jan Nieuwenhuizen <janneke-list@xs4all.nl> for cross-MinGW32 builds. Add `trunc', requested by Mark H Weaver <mhw@netris.org>.
26 lines
816 B
Text
26 lines
816 B
Text
# close.m4 serial 5
|
|
dnl Copyright (C) 2008-2011 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
|
|
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
|
|
])
|
|
])
|
|
|
|
AC_DEFUN([gl_REPLACE_CLOSE],
|
|
[
|
|
AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
|
|
REPLACE_CLOSE=1
|
|
AC_LIBOBJ([close])
|
|
gl_REPLACE_FCLOSE
|
|
])
|