summaryrefslogtreecommitdiff
path: root/profiles/sap
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2014-09-19 16:10:04 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2014-09-24 21:31:13 +0300
commit5b23bead3bd960caf51e2aa84b4e535ca46eecc3 (patch)
tree90d48c35bc49f57826ae88d08fda507b3ffa4f05 /profiles/sap
parent665c517776df6b87a9fe925144ce2a2ef228379d (diff)
downloadbluez-5b23bead3bd960caf51e2aa84b4e535ca46eecc3.tar.gz
sap: Fix compilation errors with musl
Fix multiple errors similar to: profiles/sap/sap-u8500.c: In function 'send_request': profiles/sap/sap-u8500.c:288:3: error: implicit declaration of function 'strerror' [-Werror=implicit-function-declaration] sap_error("sending request failed: %s", strerror(ENOMEM)); ^ profiles/sap/sap-u8500.c:288:3: error: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Werror=format=] profiles/sap/sap-u8500.c:297:3: error: implicit declaration of function 'memcpy' [-Werror=implicit-function-declaration] memcpy(msg->payload, param->val, param->len); ^
Diffstat (limited to 'profiles/sap')
-rw-r--r--profiles/sap/sap-u8500.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/profiles/sap/sap-u8500.c b/profiles/sap/sap-u8500.c
index d0430294f..5417d5940 100644
--- a/profiles/sap/sap-u8500.c
+++ b/profiles/sap/sap-u8500.c
@@ -32,6 +32,7 @@
#include <unistd.h>
#include <errno.h>
#include <glib.h>
+#include <string.h>
#include <sys/socket.h>
#include <sys/un.h>