From 5b23bead3bd960caf51e2aa84b4e535ca46eecc3 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Fri, 19 Sep 2014 16:10:04 +0200 Subject: [PATCH] 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); ^ --- profiles/sap/sap-u8500.c | 1 + 1 file changed, 1 insertion(+) 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 #include #include +#include #include #include -- 2.47.3