| 1 |
From: Steven Chamberlain <[email protected]> |
| 2 |
Subject: only use ETIME if defined |
| 3 |
Bug-Debian: http://bugs.debian.org/765284 |
| 4 |
Forwarded: no |
| 5 |
|
| 6 |
ETIME relates to an optional POSIX STREAMS extension not implemented |
| 7 |
on some platforms (such as GNU/kFreeBSD). |
| 8 |
|
| 9 |
Don't check for this return value on platforms that don't define it. |
| 10 |
|
| 11 |
--- htdig-3.2.0b6.orig/db/mut_pthread.c.orig 2002-02-02 18:18:05.000000000 +0000 |
| 12 |
+++ htdig-3.2.0b6/db/mut_pthread.c 2014-10-14 12:40:53.771737556 +0100 |
| 13 |
@@ -201,7 +201,11 @@ |
| 14 |
* call, and Solaris delivers the signal to the wrong |
| 15 |
* LWP. |
| 16 |
*/ |
| 17 |
- if (ret != 0 && ret != ETIME && ret != ETIMEDOUT) |
| 18 |
+ if (ret != 0 && |
| 19 |
+#ifdef ETIME |
| 20 |
+ ret != ETIME && |
| 21 |
+#endif |
| 22 |
+ ret != ETIMEDOUT) |
| 23 |
return (ret); |
| 24 |
} |
| 25 |
|