Commit: becfb8474278404dc704f13619da6a299d264cc3
Parent: 18f0cdaac11b07ad3a209bd6ba03ced11e99b714
Author: Natanael Copa <ncopa@alpinelinux.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-03-14 13:29:33
Tree: 986386896b6e6c9eaa5895bc737f04726ee42b2f

unit: prevent unintended 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) instead of the intended src/log.c's error(). This also fixes the following compile error on Alpine Linux with musl libc which does not implement the error(3) GNU extension: src/sdpd-request.o: In function `extract_des': /home/ncopa/src/bluez/src/sdpd-request.c:126: undefined reference to `error' src/sdpd-request.o: In function `process_request': /home/ncopa/src/bluez/src/sdpd-request.c:1022: undefined reference to `error' /home/ncopa/src/bluez/src/sdpd-request.c:1045: undefined reference to `error'

Diffstat

M Makefile.am | 1 +
M unit/test-sdp.c | 10 ++++- - - - - -

2 files changed, 5 insertions(+), 6 deletions(-)

View Full Diff | Patch