aboutsummaryrefslogtreecommitdiffstats
path: root/main/bluez/0003-unit-prevent-use-of-glibc-s-error-3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/bluez/0003-unit-prevent-use-of-glibc-s-error-3.patch')
-rw-r--r--main/bluez/0003-unit-prevent-use-of-glibc-s-error-3.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/main/bluez/0003-unit-prevent-use-of-glibc-s-error-3.patch b/main/bluez/0003-unit-prevent-use-of-glibc-s-error-3.patch
new file mode 100644
index 0000000000..7a9a9a9ff0
--- /dev/null
+++ b/main/bluez/0003-unit-prevent-use-of-glibc-s-error-3.patch
@@ -0,0 +1,34 @@
+From 91e3e5dee411d4af864cc81e108e0e75c1d7e846 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Fri, 17 Jan 2014 10:39:16 +0000
+Subject: [PATCH 3/3] unit: prevent use of glibc's error(3)
+
+When building the test-sdp we don't want src/sdpd-request.c end up
+using the incompatible GNU libc's error(3).
+
+This also fixes building on musl libc which misses the error(3) GNU
+extension.
+---
+ unit/test-sdp.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/unit/test-sdp.c b/unit/test-sdp.c
+index 6d699e2..eeed0cb 100644
+--- a/unit/test-sdp.c
++++ b/unit/test-sdp.c
+@@ -134,6 +134,12 @@ void btd_debug(const char *format, ...)
+ {
+ }
+
++void error(const char *format, ...);
++
++void error(const char *format, ...)
++{
++}
++
+ static void context_quit(struct context *context)
+ {
+ g_main_loop_quit(context->main_loop);
+--
+1.8.5.3
+