bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH 03/11] pipe-filter-aux: undefine HAVE_SELECT on KLIBC


From: KO Myung-Hun
Subject: [PATCH 03/11] pipe-filter-aux: undefine HAVE_SELECT on KLIBC
Date: Sat, 7 Nov 2015 11:45:48 +0900

On OS/2 kLIBC, select() works only on sockets.

* lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
---
 ChangeLog             | 7 +++++++
 lib/pipe-filter-aux.h | 5 +++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c977cae..6fc07ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2015-11-07  KO Myung-Hun  <address@hidden>
 
+    pipe-filter-aux: undefine HAVE_SELECT on KLIBC
+    On OS/2 kLIBC, select() works only on sockets.
+
+    * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
+
+2015-11-07  KO Myung-Hun  <address@hidden>
+
     binary-io: don't put fd in binary mode if it is a console on EMX
     * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
     a console on EMX.
diff --git a/lib/pipe-filter-aux.h b/lib/pipe-filter-aux.h
index 132cc54..ac11be7 100644
--- a/lib/pipe-filter-aux.h
+++ b/lib/pipe-filter-aux.h
@@ -35,8 +35,9 @@ _GL_INLINE_HEADER_BEGIN
    looping while waiting for the child.  Not good.  But hardly any platform
    lacks select() nowadays.)  */
 
-/* On BeOS select() works only on sockets, not on normal file descriptors.  */
-#ifdef __BEOS__
+/* On BeOS and OS/2 kLIBC select() works only on sockets, not on normal file
+   descriptors.  */
+#if defined __BEOS__ || defined __KLIBC__
 # undef HAVE_SELECT
 #endif
 
-- 
2.6.0




reply via email to

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