]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Add/remove extra includes
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 20 Dec 2012 13:17:09 +0000 (14:17 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 9 Jan 2013 15:10:18 +0000 (10:10 -0500)
While cross-building with bionic, a number of failures were triggered by some
missing includes and in a few cases by extra unused includes.

This commit updates the various headers based on those observations.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/conf.h
src/lxc/confile.c
src/lxc/confile.h
src/lxc/console.c
src/lxc/lxclock.c
src/lxc/namespace.c
src/lxc/namespace.h
src/lxc/start.c
src/lxc/stop.c

index fa3aada3afb33d06348e486cea20f25f55bae876..1f9b8617340b91890ecc6a18ddfafa661c5974ef 100644 (file)
@@ -26,6 +26,7 @@
 #include <netinet/in.h>
 #include <net/if.h>
 #include <sys/param.h>
+#include <sys/types.h>
 #include <stdbool.h>
 
 #include <lxc/list.h>
index 1d87227b892c1e3fd5c27c8982390fa029b6fbd0..a725b78c654720e4e617ba7b97504a6471d511a5 100644 (file)
@@ -27,7 +27,6 @@
 #include <unistd.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <pty.h>
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <sys/param.h>
index a96efcecb387b61de7dd880ad5ea11d3351fdc90..bfa44adce3ee8b6a6dc6cdf4c02c498dae456c57 100644 (file)
@@ -21,6 +21,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
+#include <stdio.h>
+
 #ifndef _confile_h
 #define _confile_h
 
index 1eb3581fddf22ef20513421d797b7b53ea9f36a4..58738270e80c912b8fcbbc515eb8e1219ac089ad 100644 (file)
@@ -28,7 +28,7 @@
 #include <errno.h>
 #include <pty.h>
 #include <sys/types.h>
-#include <sys/un.h>
+#include <termios.h>
 
 #include "log.h"
 #include "conf.h"
index 2d10d7744b985cdc4867d2bc6609640c2d80b370..bbc39efa442e8c90a263df272dc598b69d0a67d6 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "lxclock.h"
 #include <malloc.h>
+#include <stdio.h>
 
 #define OFLAG (O_CREAT | O_RDWR)
 #define SEMMODE 0660
index 3fa027b539edb77e5e7777de8489c6fd91214624..d10efdc2d6730fa3e72578878a53a978e419e2c7 100644 (file)
@@ -25,7 +25,6 @@
 #include <alloca.h>
 #include <errno.h>
 #include <signal.h>
-#include <syscall.h>
 #include <sys/param.h>
 #include <sys/types.h>
 #include <sys/stat.h>
index 715dffa0e58c9afc4cf24a355564d416c58e3ab9..109e0bb97f13d501dddac008631f3936a9331064 100644 (file)
@@ -23,7 +23,7 @@
 #ifndef __namespace_h
 #define __namespace_h
 
-#include <syscall.h>
+#include <sys/syscall.h>
 #include <sched.h>
 
 #ifndef CLONE_FS
index 82a74d877a5d56ed5e7473a5e24d0f21f740ffae..34520223529e6022f450421dcb6b993e244f4606 100644 (file)
 #include <sys/mount.h>
 #include <sys/stat.h>
 #include <sys/types.h>
+#include <sys/socket.h>
 #include <sys/prctl.h>
 #include <sys/types.h>
 #include <sys/capability.h>
 #include <sys/wait.h>
 #include <sys/un.h>
 #include <sys/poll.h>
+#include <sys/syscall.h>
 
 #ifdef HAVE_SYS_SIGNALFD_H
 #  include <sys/signalfd.h>
@@ -128,6 +130,7 @@ int signalfd(int fd, const sigset_t *mask, int flags)
 #include "namespace.h"
 #include "apparmor.h"
 #include "lxcseccomp.h"
+#include "caps.h"
 
 lxc_log_define(lxc_start, lxc);
 
index 884eccef5b676a09bdff840b1ce14877db6f170f..1cacdca188456f81ecbad1cd9684f18a23f4db21 100644 (file)
@@ -26,7 +26,7 @@
 #include <errno.h>
 #include <unistd.h>
 #include <sys/param.h>
-#include <sys/signal.h>
+#include <signal.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/socket.h>