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>
#include <netinet/in.h>
#include <net/if.h>
#include <sys/param.h>
+#include <sys/types.h>
#include <stdbool.h>
#include <lxc/list.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
-#include <pty.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/param.h>
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <stdio.h>
+
#ifndef _confile_h
#define _confile_h
#include <errno.h>
#include <pty.h>
#include <sys/types.h>
-#include <sys/un.h>
+#include <termios.h>
#include "log.h"
#include "conf.h"
#include "lxclock.h"
#include <malloc.h>
+#include <stdio.h>
#define OFLAG (O_CREAT | O_RDWR)
#define SEMMODE 0660
#include <alloca.h>
#include <errno.h>
#include <signal.h>
-#include <syscall.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifndef __namespace_h
#define __namespace_h
-#include <syscall.h>
+#include <sys/syscall.h>
#include <sched.h>
#ifndef CLONE_FS
#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>
#include "namespace.h"
#include "apparmor.h"
#include "lxcseccomp.h"
+#include "caps.h"
lxc_log_define(lxc_start, lxc);
#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>