aboutsummaryrefslogtreecommitdiffstats
path: root/main/bluez/0001-shared-include-endian.h-for-be32toh-htobe32-and-htob.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-03-14 10:05:00 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-03-14 10:05:00 +0000
commitc44818aa664a2f5f3f9f70fe92f20db1ee11d8a7 (patch)
tree303a1165e306d06800927e01d8a61690eecae3e5 /main/bluez/0001-shared-include-endian.h-for-be32toh-htobe32-and-htob.patch
parent9f732c02548dee0e47ea1d6a004f63debe48d03a (diff)
downloadaports-c44818aa664a2f5f3f9f70fe92f20db1ee11d8a7.tar.bz2
aports-c44818aa664a2f5f3f9f70fe92f20db1ee11d8a7.tar.xz
main/bluez: upgrade to 5.16
Diffstat (limited to 'main/bluez/0001-shared-include-endian.h-for-be32toh-htobe32-and-htob.patch')
-rw-r--r--main/bluez/0001-shared-include-endian.h-for-be32toh-htobe32-and-htob.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/main/bluez/0001-shared-include-endian.h-for-be32toh-htobe32-and-htob.patch b/main/bluez/0001-shared-include-endian.h-for-be32toh-htobe32-and-htob.patch
new file mode 100644
index 0000000000..53eaf7763e
--- /dev/null
+++ b/main/bluez/0001-shared-include-endian.h-for-be32toh-htobe32-and-htob.patch
@@ -0,0 +1,49 @@
+From 16fc9188b9de0e15454a31072b9636b9fa683d89 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Fri, 14 Mar 2014 07:27:33 +0000
+Subject: [PATCH 1/3] shared: include endian.h for be32toh, htobe32 and htobe64
+ functions
+
+The man page says that #include <endian.h> is needed for those.
+
+This fixes the following compile error when building with musl libc on
+Alpine Linux:
+
+src/shared/btsnoop.o: In function `btsnoop_write':
+.../src/bluez/src/shared/btsnoop.c:208: undefined reference to `htobe32'
+.../src/bluez/src/shared/btsnoop.c:209: undefined reference to `htobe32'
+.../src/bluez/src/shared/btsnoop.c:210: undefined reference to `htobe32'
+.../src/bluez/src/shared/btsnoop.c:211: undefined reference to `htobe32'
+.../src/bluez/src/shared/btsnoop.c:212: undefined reference to `htobe64'
+src/shared/btsnoop.o: In function `btsnoop_open':
+.../src/bluez/src/shared/btsnoop.c:100: undefined reference to `be32toh'
+.../src/bluez/src/shared/btsnoop.c:103: undefined reference to `be32toh'
+src/shared/btsnoop.o: In function `btsnoop_create':
+.../src/bluez/src/shared/btsnoop.c:151: undefined reference to `htobe32'
+.../src/bluez/src/shared/btsnoop.c:152: undefined reference to `htobe32'
+src/shared/btsnoop.o: In function `pklg_read_hci':
+.../src/bluez/src/shared/btsnoop.c:336: undefined reference to `be32toh'
+.../src/bluez/src/shared/btsnoop.c:338: undefined reference to `be64toh'
+src/shared/btsnoop.o: In function `btsnoop_read_hci':
+.../src/bluez/src/shared/btsnoop.c:416: undefined reference to `be32toh'
+.../src/bluez/src/shared/btsnoop.c:417: undefined reference to `be32toh'
+.../src/bluez/src/shared/btsnoop.c:419: undefined reference to `be64toh'
+---
+ src/shared/btsnoop.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/shared/btsnoop.c b/src/shared/btsnoop.c
+index d2b3b4b..17a872c 100644
+--- a/src/shared/btsnoop.c
++++ b/src/shared/btsnoop.c
+@@ -25,6 +25,7 @@
+ #include <config.h>
+ #endif
+
++#include <endian.h>
+ #include <fcntl.h>
+ #include <unistd.h>
+ #include <stdlib.h>
+--
+1.9.0
+