[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fcntl and sockets on mingw
From: |
Bruno Haible |
Subject: |
fcntl and sockets on mingw |
Date: |
Sat, 28 Jan 2012 13:16:30 +0100 |
User-agent: |
KMail/4.7.4 (Linux/3.1.0-1.2-desktop; KDE/4.7.4; x86_64; ; ) |
In a gnulib testdir for the modules
accept accept4 fcntl socket
I'm seeing this compilation error on mingw:
gcc-3 -mno-cygwin -g -O2 -L/usr/local/mingw/lib -o test-fcntl.exe
test-fcntl.o libtests.a ../gllib/libgnu.a libtests.a
../gllib/libgnu.a(fcntl.o): In function `dupfd':
/home/bruno/multibuild-1627/mingw2009/testdir1/gllib/fcntl.c:136: undefined
reference to `_close_used_without_requesting_gnulib_module_close'
collect2: ld returned 1 exit status
make[4]: *** [test-fcntl.exe] Error 1
Since the file descriptors being closed can be copies of a socket handle,
just "#undef close" will not be enough. We need the 'close' module here.
2012-01-28 Bruno Haible <address@hidden>
fcntl: Avoid compilation error on native Windows.
* modules/fcntl (Depends-on): Add 'close'.
--- modules/fcntl.orig Sat Jan 28 13:03:06 2012
+++ modules/fcntl Sat Jan 28 13:00:10 2012
@@ -8,6 +8,7 @@
Depends-on:
fcntl-h
extensions
+close [test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1]
dup2 [test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1]
getdtablesize [test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1]
msvc-nothrow [test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- fcntl and sockets on mingw,
Bruno Haible <=