]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
initutils: include pthread.h 3905/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 15 Jul 2021 08:37:47 +0000 (10:37 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 15 Jul 2021 08:37:47 +0000 (10:37 +0200)
Otherwise we might end up with implicit function declaration warnings.

Link: https://jenkins.linuxcontainers.org/job/lxc-build-android/8915/console
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cmd/lxc_init.c
src/lxc/initutils.c

index cb1b348c4b1e757c613529d92abe7cf77e67df86..f8a0bc23dee63172330a601cee7dc5d512307586 100644 (file)
@@ -9,7 +9,6 @@
 #include <getopt.h>
 #include <libgen.h>
 #include <limits.h>
-#include <pthread.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index ce0e0349c918ece02922047a0bdfc75aa3e3212c..5f2a424543a1005fc8dd57c1c5a5f78a8c2b4de8 100644 (file)
@@ -3,11 +3,12 @@
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE 1
 #endif
+#include <pthread.h>
+#include <signal.h>
 #include <sys/prctl.h>
 #include <sys/syscall.h>
 #include <sys/wait.h>
 #include <unistd.h>
-#include <signal.h>
 
 #include "compiler.h"
 #include "config.h"