Commit 8173e600 by Stéphane Graber

Add/remove extra includes

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: 's avatarStéphane Graber <stgraber@ubuntu.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent d2717c14
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <netinet/in.h> #include <netinet/in.h>
#include <net/if.h> #include <net/if.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/types.h>
#include <stdbool.h> #include <stdbool.h>
#include <lxc/list.h> #include <lxc/list.h>
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <pty.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h> #include <sys/param.h>
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/ */
#include <stdio.h>
#ifndef _confile_h #ifndef _confile_h
#define _confile_h #define _confile_h
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <errno.h> #include <errno.h>
#include <pty.h> #include <pty.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/un.h> #include <termios.h>
#include "log.h" #include "log.h"
#include "conf.h" #include "conf.h"
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include "lxclock.h" #include "lxclock.h"
#include <malloc.h> #include <malloc.h>
#include <stdio.h>
#define OFLAG (O_CREAT | O_RDWR) #define OFLAG (O_CREAT | O_RDWR)
#define SEMMODE 0660 #define SEMMODE 0660
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include <alloca.h> #include <alloca.h>
#include <errno.h> #include <errno.h>
#include <signal.h> #include <signal.h>
#include <syscall.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#ifndef __namespace_h #ifndef __namespace_h
#define __namespace_h #define __namespace_h
#include <syscall.h> #include <sys/syscall.h>
#include <sched.h> #include <sched.h>
#ifndef CLONE_FS #ifndef CLONE_FS
......
...@@ -38,12 +38,14 @@ ...@@ -38,12 +38,14 @@
#include <sys/mount.h> #include <sys/mount.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h>
#include <sys/prctl.h> #include <sys/prctl.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/capability.h> #include <sys/capability.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <sys/un.h> #include <sys/un.h>
#include <sys/poll.h> #include <sys/poll.h>
#include <sys/syscall.h>
#ifdef HAVE_SYS_SIGNALFD_H #ifdef HAVE_SYS_SIGNALFD_H
# include <sys/signalfd.h> # include <sys/signalfd.h>
...@@ -128,6 +130,7 @@ int signalfd(int fd, const sigset_t *mask, int flags) ...@@ -128,6 +130,7 @@ int signalfd(int fd, const sigset_t *mask, int flags)
#include "namespace.h" #include "namespace.h"
#include "apparmor.h" #include "apparmor.h"
#include "lxcseccomp.h" #include "lxcseccomp.h"
#include "caps.h"
lxc_log_define(lxc_start, lxc); lxc_log_define(lxc_start, lxc);
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/signal.h> #include <signal.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/socket.h> #include <sys/socket.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment