[lxc-devel] [lxc/master] Fixing compile error when compiling for android

kubiko on Github lxc-bot at linuxcontainers.org
Tue Jan 8 17:05:41 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 867 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190108/70f04497/attachment.bin>
-------------- next part --------------
From 60018868a3a41f22245bdae90d52e52a92be0177 Mon Sep 17 00:00:00 2001
From: Ondrej Kubik <ondrej.kubik at canonical.com>
Date: Tue, 8 Jan 2019 17:00:36 +0000
Subject: [PATCH] Fixing compile error when compiling for android

Signed-off-by: Ondrej Kubik <ondrej.kubik at canonical.com>
---
 src/include/lxcmntent.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/include/lxcmntent.c b/src/include/lxcmntent.c
index 4c1ad763b..10c10c549 100644
--- a/src/include/lxcmntent.c
+++ b/src/include/lxcmntent.c
@@ -24,6 +24,7 @@
 #include <alloca.h>
 #include <mntent.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include "../lxc/macro.h"
 


More information about the lxc-devel mailing list