summaryrefslogtreecommitdiffstats
path: root/main/obexd
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2013-01-05 00:46:47 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2013-01-05 00:46:47 +0100
commitc9cdaa7f7816a5cd724ed077071697844e6a2506 (patch)
tree7d466f85384a4a81f7310951d119c0b6be79ed05 /main/obexd
parentcf47c99737fa0cbde0cd29d0ba1c97cbc75d52c5 (diff)
downloadaports-c9cdaa7f7816a5cd724ed077071697844e6a2506.tar.bz2
aports-c9cdaa7f7816a5cd724ed077071697844e6a2506.tar.xz
main/obexd: fix build on eglibc 2.17
Diffstat (limited to 'main/obexd')
-rw-r--r--main/obexd/APKBUILD16
-rw-r--r--main/obexd/include-unistd.h.patch11
2 files changed, 25 insertions, 2 deletions
diff --git a/main/obexd/APKBUILD b/main/obexd/APKBUILD
index 1577dea55..0f0accde6 100644
--- a/main/obexd/APKBUILD
+++ b/main/obexd/APKBUILD
@@ -9,7 +9,18 @@ license="GPL2"
depends="!obex-data-server"
subpackages="$pkgname-client"
makedepends="dbus-glib-dev openobex-dev glib-dev bluez-dev libical-dev"
-source="http://www.kernel.org/pub/linux/bluetooth/$pkgname-$pkgver.tar.bz2"
+source="http://www.kernel.org/pub/linux/bluetooth/$pkgname-$pkgver.tar.bz2
+ include-unistd.h.patch"
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
build ()
{
@@ -41,4 +52,5 @@ client() {
usr/share/dbus-*/services/obex-client.service
}
-md5sums="625f0417d119437429c9cce29479cfa4 obexd-0.46.tar.bz2"
+md5sums="625f0417d119437429c9cce29479cfa4 obexd-0.46.tar.bz2
+be080a04628bf1c53f86ba205d99161a include-unistd.h.patch"
diff --git a/main/obexd/include-unistd.h.patch b/main/obexd/include-unistd.h.patch
new file mode 100644
index 000000000..921407d25
--- /dev/null
+++ b/main/obexd/include-unistd.h.patch
@@ -0,0 +1,11 @@
+--- a/obexd-0.46/mas.c.orig
++++ b/obexd-0.46/plugins/mas.c
+@@ -30,6 +30,7 @@
+ #include <glib.h>
+ #include <fcntl.h>
+ #include <inttypes.h>
++#include <unistd.h>
+
+ #include <gobex/gobex.h>
+
+