]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix tests on Android
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 6 Nov 2013 03:43:38 +0000 (22:43 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 6 Nov 2013 03:43:38 +0000 (22:43 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/tests/concurrent.c
src/tests/console.c
src/tests/reboot.c
src/tests/snapshot.c

index 6673f3aa8b3e0218f74dfee124ec1ce3497d1aa2..16e93d65623e922dcc429a11bcc44a3473f3af91 100644 (file)
@@ -125,6 +125,8 @@ static void *concurrent(void *arguments)
 {
     do_function(arguments);
     pthread_exit(NULL);
+
+    return NULL;
 }
 
 int main(int argc, char *argv[]) {
index 33d6ad27827ef42c5a4de59d8bb7ca1cd7517e6e..c4cb3b2388c099e1c6e17f28357b24ddab7068ef 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <errno.h>
 #include <unistd.h>
+#include <stdio.h>
 
 #define TTYCNT      4
 #define TTYCNT_STR "4"
index 82fa5b16bb2ef598e9283663c2fb1df6e6a76bf7..0b8738ee2af93637862cf598914caf0c0edcb9f5 100644 (file)
@@ -25,7 +25,8 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 
-#define _GNU_SOURCE
+#include <lxc/namespace.h>
+
 #include <sched.h>
 #include <linux/sched.h>
 #include <linux/reboot.h>
index 1f6d115d81d6b8d0057362d2512914cb89737990..97925a29e55b80ce01bffd3a40982099c9274fdd 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <errno.h>
 #include <stdlib.h>
+#include <stdio.h>
 #include "../lxc/lxc.h"
 
 #define MYNAME "snapxxx1"