]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Include strings.h for strcasecmp
authorNatanael Copa <ncopa@alpinelinux.org>
Wed, 29 Jan 2014 14:23:45 +0000 (14:23 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 29 Jan 2014 16:15:50 +0000 (16:15 +0000)
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@alpinelinux.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/log.h

index 4a426656d18b4a8ce88c2f51e112720c4f24d225..4a9714ae9712fd963ccd5783912524623fe5d974 100644 (file)
@@ -28,6 +28,7 @@
 #include <stdio.h>
 #include <sys/time.h>
 #include <string.h>
+#include <strings.h>
 #include <stdbool.h>
 
 #ifndef O_CLOEXEC