]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix compilation warning with malloc
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 1 Jul 2009 09:58:41 +0000 (11:58 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 1 Jul 2009 09:58:41 +0000 (11:58 +0200)
Add missing include stdlib.h

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/lxc_execute.c
src/lxc/lxc_monitor.c

index aea7a3c5693ad50fce2914d788ff7f5aae7db583..9ca53b4ba480f07961d481cf3d5a9b1f5d037a5b 100644 (file)
@@ -22,6 +22,7 @@
  */
 #define _GNU_SOURCE
 #include <stdio.h>
+#include <stdlib.h>
 #include <errno.h>
 #include <libgen.h>
 #include <string.h>
index ff91a2f2bfa4a5e9e0b05d7b0943102d882e2ed2..4befa15a949cbbee85ce3d6b88bc3f0f2f8759b7 100644 (file)
@@ -21,6 +21,7 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <libgen.h>
 #include <unistd.h>