Commit f6c7c073 authored by Yixun Lan's avatar Yixun Lan Committed by Pavel Emelyanov

include sys/sysmacros.h for minor/major/makedev funcs

Since glibc is moving away from implicitly including sys/sysmacros.h
all the time via sys/types.h, include the header directly in more
places.  This seems to cover most makedev/major/minor usage.
Signed-off-by: 's avatarYixun Lan <dlan@gentoo.org>
Signed-off-by: 's avatarMike Frysinger <vapier@gentoo.org>
Reviewed-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 1c43dc2d
......@@ -5,6 +5,7 @@
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include "cr_options.h"
#include "imgset.h"
......
......@@ -10,6 +10,7 @@
#include <string.h>
#include <sys/types.h>
#include <sys/statfs.h>
#include <sys/sysmacros.h>
#include <dirent.h>
#include "int.h"
......
......@@ -7,6 +7,7 @@
#include <sys/mman.h>
#include <errno.h>
#include <sys/syscall.h>
#include <sys/sysmacros.h>
#include "int.h"
#include "log.h"
......
......@@ -9,6 +9,7 @@
#include <string.h>
#include <ctype.h>
#include <linux/fs.h>
#include <sys/sysmacros.h>
#include "types.h"
#include "common/list.h"
......
......@@ -6,6 +6,7 @@
#endif
#include <sys/types.h>
#include <sys/sysmacros.h>
#include <limits.h>
......
......@@ -8,6 +8,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/sysmacros.h>
#include "zdtmtst.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