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 d043029..5417d59 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> -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html