[lxc-devel] [PATCH 3/8] Include strings.h for strcasecmp

Natanael Copa ncopa at alpinelinux.org
Wed Jan 29 14:23:45 UTC 2014


This fixes the following error with musl libc:
In file included from start.c:59:0:
log.h: In function 'lxc_log_priority_to_int':
log.h:136:2: error: implicit declaration of function 'strcasecmp' [-Werror=implicit-function-declaration]

Signed-off-by: Natanael Copa <ncopa at alpinelinux.org>
---
 src/lxc/log.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lxc/log.h b/src/lxc/log.h
index 4a42665..4a9714a 100644
--- a/src/lxc/log.h
+++ b/src/lxc/log.h
@@ -28,6 +28,7 @@
 #include <stdio.h>
 #include <sys/time.h>
 #include <string.h>
+#include <strings.h>
 #include <stdbool.h>
 
 #ifndef O_CLOEXEC
-- 
1.8.5.3



More information about the lxc-devel mailing list