Skip to content

Commit

Permalink
tree-wide: include <sys/sysmacros.h> directly
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner authored and stgraber committed Mar 20, 2017
1 parent e1adf44 commit 1750a26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/lxc/bdev/lxclvm.c
Expand Up @@ -29,6 +29,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/sysmacros.h>
#include <sys/wait.h>

#include "bdev.h"
Expand All @@ -41,9 +42,6 @@
#ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>
#endif
#ifdef MAJOR_IN_SYSMACROS
# include <sys/sysmacros.h>
#endif

lxc_log_define(lxclvm, lxc);

Expand Down
4 changes: 1 addition & 3 deletions src/lxc/conf.c
Expand Up @@ -47,6 +47,7 @@
#include <sys/prctl.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/sysmacros.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/utsname.h>
Expand All @@ -56,9 +57,6 @@
#ifdef MAJOR_IN_MKDEV
# include <sys/mkdev.h>
#endif
#ifdef MAJOR_IN_SYSMACROS
# include <sys/sysmacros.h>
#endif

#ifdef HAVE_STATVFS
#include <sys/statvfs.h>
Expand Down

0 comments on commit 1750a26

Please sign in to comment.