diff --git a/src/lxc/bdev.c b/src/lxc/bdev.c index 59eda7e4..44b71d4c 100644 --- a/src/lxc/bdev.c +++ b/src/lxc/bdev.c @@ -41,6 +41,7 @@ #include #include #include +#include #include "lxc.h" #include "config.h" @@ -58,9 +59,6 @@ #ifdef MAJOR_IN_MKDEV # include #endif -#ifdef MAJOR_IN_SYSMACROS -# include -#endif #ifndef BLKGETSIZE64 #define BLKGETSIZE64 _IOR(0x12,114,size_t) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 5d583d5f..d4217c27 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -36,14 +36,12 @@ #include #include #include +#include /* makedev() */ #ifdef MAJOR_IN_MKDEV # include #endif -#ifdef MAJOR_IN_SYSMACROS -# include -#endif #ifdef HAVE_STATVFS #include diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index 3963a3ee..30ac6733 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include @@ -60,9 +61,6 @@ #ifdef MAJOR_IN_MKDEV # include #endif -#ifdef MAJOR_IN_SYSMACROS -# include -#endif #if HAVE_IFADDRS_H #include