diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2016-11-22 14:55:03 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2016-11-22 14:55:03 +0800 |
commit | 453530f10ea7a7defbc618bd3a761909caa0360b (patch) | |
tree | a52ac247d6153a6f527c54ee12240ae27dd64388 /databases/xapian-core | |
parent | 34ded7ec3d3c861365b679df4aa9e8ea5c9445cd (diff) | |
download | freebsd-ports-gnome-453530f10ea7a7defbc618bd3a761909caa0360b.tar.gz freebsd-ports-gnome-453530f10ea7a7defbc618bd3a761909caa0360b.tar.zst freebsd-ports-gnome-453530f10ea7a7defbc618bd3a761909caa0360b.zip |
- Simplify patch for FreeBSD 9.x
Diffstat (limited to 'databases/xapian-core')
-rw-r--r-- | databases/xapian-core/Makefile | 2 | ||||
-rw-r--r-- | databases/xapian-core/files/extrapatch-backends_flint__lock.cc | 16 |
2 files changed, 1 insertions, 17 deletions
diff --git a/databases/xapian-core/Makefile b/databases/xapian-core/Makefile index e6686f90b49d..0638a1f95380 100644 --- a/databases/xapian-core/Makefile +++ b/databases/xapian-core/Makefile @@ -32,7 +32,7 @@ SSE2_CONFIGURE_ENABLE= sse # FreeBSD 9 does not have SOCK_CLOEXEC. .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000 -EXTRA_PATCHES= ${FILESDIR}/extrapatch-backends_flint__lock.cc +CXXFLAGS+= -DSOCK_CLOEXEC=0 .endif post-install: diff --git a/databases/xapian-core/files/extrapatch-backends_flint__lock.cc b/databases/xapian-core/files/extrapatch-backends_flint__lock.cc deleted file mode 100644 index 5fe3505080e8..000000000000 --- a/databases/xapian-core/files/extrapatch-backends_flint__lock.cc +++ /dev/null @@ -1,16 +0,0 @@ -FreeBSD 9 does not have SOCK_CLOEXEC. Define it to 0, as the code already deals -with it. -Xapian 1.4 has a safesyssocket.h that takes care of this. ---- backends/flint_lock.cc.orig 2016-09-16 01:59:15 UTC -+++ backends/flint_lock.cc -@@ -59,6 +59,10 @@ using namespace std; - # endif - #endif - -+#ifndef SOCK_CLOEXEC -+#define SOCK_CLOEXEC 0 -+#endif -+ - FlintLock::reason - FlintLock::lock(bool exclusive, string & explanation) { - // Currently we only support exclusive locks. |