bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

interix and rpl_select


From: Markus Duft
Subject: interix and rpl_select
Date: Thu, 18 Feb 2010 11:05:28 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090914)

Hey!

a while ago you guys implemented a select() fix for interix 3.5 (thanks
again ;)). now i was surprised to see the same issue come up again (it's
there since a while now again, just had no time to dig into the problem).

i now had some time to look into it, and i discovered, that select is
only rpl'd when sys/select.h is missing, which is not the case on
interix 3.5. i guess it should also be rpl'd if REPLACE_SELECT is set by
configure.

atm i'm using the attached patch to fix coreutils again, until this is
fixed in gnulib. is the attached patch ok as it is, or do you need
something different/more to be able to add this to gnulib?

the original thread is here:
[1] http://lists.gnu.org/archive/html/bug-gnulib/2009-03/msg00125.html

Cheers, Markus
diff -ru -x '*.Po' -x '*.Plo' coreutils-8.4.orig/lib/sys_select.in.h 
coreutils-8.4/lib/sys_select.in.h
--- coreutils-8.4.orig/lib/sys_select.in.h      2010-02-18 09:47:14 +0100
+++ coreutils-8.4/lib/sys_select.in.h   2010-02-18 10:31:41 +0100
@@ -66,7 +66,9 @@
 #ifndef _GL_SYS_SELECT_H
 #define _GL_SYS_SELECT_H
 
-#if address@hidden@
+/* interix 3.5 has a broken select(), so we need to replace it even though
+ * there _is_ sys/select.h. see select.c too. */
+#if address@hidden@ || @REPLACE_SELECT@
 
 /* A platform that lacks <sys/select.h>.  */
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]