aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-05-11 02:54:21 +0800
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-05-11 02:54:21 +0800
commit0ffcbe1ac8bebfb0ec279061b5dc44ca068a1bd0 (patch)
treebe79f461d15d5989e375448230aff2b3123a1117
parent4d235e7778e6e590e40d8f605f086d53bd80b90a (diff)
downloadfreebsd-ports-gnome-0ffcbe1ac8bebfb0ec279061b5dc44ca068a1bd0.tar.gz
freebsd-ports-gnome-0ffcbe1ac8bebfb0ec279061b5dc44ca068a1bd0.tar.zst
freebsd-ports-gnome-0ffcbe1ac8bebfb0ec279061b5dc44ca068a1bd0.zip
- Fix build with libc++ 3.8.0 by ignoring ETIME errno which does not exist on FreeBSD
PR: 209101 Submitted by: dim@FreeBSD.org
-rw-r--r--textproc/htdig/files/patch-db_mut__pthread.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/textproc/htdig/files/patch-db_mut__pthread.c b/textproc/htdig/files/patch-db_mut__pthread.c
new file mode 100644
index 000000000000..1deafc8940ba
--- /dev/null
+++ b/textproc/htdig/files/patch-db_mut__pthread.c
@@ -0,0 +1,15 @@
+--- db/mut_pthread.c.orig 2002-02-02 18:18:05 UTC
++++ db/mut_pthread.c
+@@ -201,7 +201,11 @@ CDB___db_pthread_mutex_lock(mutexp)
+ * call, and Solaris delivers the signal to the wrong
+ * LWP.
+ */
+- if (ret != 0 && ret != ETIME && ret != ETIMEDOUT)
++ if (ret != 0 &&
++#ifndef __FreeBSD__
++ ret != ETIME &&
++#endif
++ ret != ETIMEDOUT)
+ return (ret);
+ }
+