[lxc-devel] [PATCH 4/8] Include limits.h for NAME_MAX

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


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 at alpinelinux.org>
---
 src/lxc/monitor.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lxc/monitor.h b/src/lxc/monitor.h
index 7e2a468..a7eb110 100644
--- a/src/lxc/monitor.h
+++ b/src/lxc/monitor.h
@@ -23,6 +23,7 @@
 #ifndef __monitor_h
 #define __monitor_h
 
+#include <limits.h>
 #include <sys/param.h>
 #include <sys/un.h>
 
-- 
1.8.5.3



More information about the lxc-devel mailing list