]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Include limits.h for NAME_MAX
authorNatanael Copa <ncopa@alpinelinux.org>
Wed, 29 Jan 2014 14:23:46 +0000 (14:23 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 29 Jan 2014 16:15:52 +0000 (16:15 +0000)
This fixes compile error with musl libc:
In file included from start.c:66:0:
monitor.h:38:12: error: 'NAME_MAX' undeclared here (not in a function)
  char name[NAME_MAX+1];
            ^

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/monitor.h

index 7e2a468faa68dd0ca2a8d251852125ff96ced2b9..a7eb11052a8a0499c4c9029f2aeba734bbdbc2a3 100644 (file)
@@ -23,6 +23,7 @@
 #ifndef __monitor_h
 #define __monitor_h
 
+#include <limits.h>
 #include <sys/param.h>
 #include <sys/un.h>