lxc: fix erroneous includes

The "" notation is preferrable if the header file is local.

Signed-off-by: Greg Kurz <gkurz@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
Greg Kurz 2011-11-10 09:41:46 +01:00 committed by dlezcano
parent f6267d9011
commit f549edcc73
8 changed files with 19 additions and 12 deletions

View File

@ -28,8 +28,9 @@
#include <unistd.h> #include <unistd.h>
#include <linux/genetlink.h> #include <linux/genetlink.h>
#include <linux/rtnetlink.h> #include <linux/rtnetlink.h>
#include <nl.h>
#include <genl.h> #include "nl.h"
#include "genl.h"
static int genetlink_resolve_family(const char *family) static int genetlink_resolve_family(const char *family)
{ {

View File

@ -28,7 +28,8 @@
#include <lxc/lxc.h> #include <lxc/lxc.h>
#include <lxc/log.h> #include <lxc/log.h>
#include <commands.h>
#include "commands.h"
#include "arguments.h" #include "arguments.h"
static bool state; static bool state;

View File

@ -21,7 +21,7 @@
* 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 <list.h> #include "list.h"
struct lxc_epoll_descr { struct lxc_epoll_descr {
int epfd; int epfd;

View File

@ -44,8 +44,9 @@
#include <linux/rtnetlink.h> #include <linux/rtnetlink.h>
#include <linux/sockios.h> #include <linux/sockios.h>
#include <linux/if_bridge.h> #include <linux/if_bridge.h>
#include <nl.h>
#include <network.h> #include "nl.h"
#include "network.h"
#ifndef IFLA_LINKMODE #ifndef IFLA_LINKMODE
# define IFLA_LINKMODE 17 # define IFLA_LINKMODE 17

View File

@ -29,7 +29,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <linux/netlink.h> #include <linux/netlink.h>
#include <linux/rtnetlink.h> #include <linux/rtnetlink.h>
#include <nl.h>
#include "nl.h"
#define NLMSG_TAIL(nmsg) \ #define NLMSG_TAIL(nmsg) \
((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len))) ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))

View File

@ -21,7 +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 "../config.h" #include "config.h"
#include <stdio.h> #include <stdio.h>
#undef _GNU_SOURCE #undef _GNU_SOURCE
#include <string.h> #include <string.h>

View File

@ -28,8 +28,9 @@
#include <unistd.h> #include <unistd.h>
#include <linux/netlink.h> #include <linux/netlink.h>
#include <linux/rtnetlink.h> #include <linux/rtnetlink.h>
#include <nl.h>
#include <rtnl.h> #include "nl.h"
#include "rtnl.h"
extern int rtnetlink_open(struct rtnl_handler *handler) extern int rtnetlink_open(struct rtnl_handler *handler)
{ {

View File

@ -21,7 +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 "../config.h" #include "config.h"
#include <stdio.h> #include <stdio.h>
#undef _GNU_SOURCE #undef _GNU_SOURCE
#include <string.h> #include <string.h>
@ -32,7 +33,6 @@
#include <signal.h> #include <signal.h>
#include <fcntl.h> #include <fcntl.h>
#include <termios.h> #include <termios.h>
#include <namespace.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/file.h> #include <sys/file.h>
#include <sys/mount.h> #include <sys/mount.h>
@ -125,6 +125,7 @@ int signalfd(int fd, const sigset_t *mask, int flags)
#include "commands.h" #include "commands.h"
#include "console.h" #include "console.h"
#include "sync.h" #include "sync.h"
#include "namespace.h"
lxc_log_define(lxc_start, lxc); lxc_log_define(lxc_start, lxc);