summaryrefslogtreecommitdiff
path: root/x11/libX11/patches
diff options
context:
space:
mode:
authortnn <tnn>2008-01-14 06:50:51 +0000
committertnn <tnn>2008-01-14 06:50:51 +0000
commitf79e97baa03f9555274f03abc3b5f44675f0d2d1 (patch)
tree880d0e304a6ed273eb28b1968b156946811d85f6 /x11/libX11/patches
parentb509d2c0b069dcc553af75d8ab1a12deb6e082c1 (diff)
downloadpkgsrc-f79e97baa03f9555274f03abc3b5f44675f0d2d1.tar.gz
HP-UX is icky in that EAGAIN != EWOULDBLOCK and select(2) can return both
things. Fortunately libX11 has code to handle this already. Enable it for HP-UX.
Diffstat (limited to 'x11/libX11/patches')
-rw-r--r--x11/libX11/patches/patch-ah15
1 files changed, 15 insertions, 0 deletions
diff --git a/x11/libX11/patches/patch-ah b/x11/libX11/patches/patch-ah
new file mode 100644
index 00000000000..f74564843f8
--- /dev/null
+++ b/x11/libX11/patches/patch-ah
@@ -0,0 +1,15 @@
+$NetBSD: patch-ah,v 1.1 2008/01/14 06:50:52 tnn Exp $
+
+--- src/XlibInt.c.orig 2007-07-21 10:45:39.000000000 +0200
++++ src/XlibInt.c
+@@ -138,6 +138,10 @@ xthread_t (*_Xthread_self_fn)(void) = NU
+ #ifdef ISC
+ #define ECHECK(err) ((errno == err) || ETEST())
+ #else
++#ifdef __hpux
++#define ECHECK(err) ((errno == err) || ETEST())
++#define SUNSYSV 1
++#else
+ #define ECHECK(err) (errno == err)
+ #endif
+ #define ESET(val) errno = val