summaryrefslogtreecommitdiffstats
path: root/include/c.h
diff options
context:
space:
mode:
authorKarel Zak2016-03-08 14:29:45 +0100
committerKarel Zak2016-03-08 14:29:45 +0100
commit075d2c0754f3723a68ad61755709fa2f0af604b4 (patch)
tree3637013a63252b8fb9423caec12636e937286748 /include/c.h
parentRevert "include sysmacros.h where used" (diff)
downloadkernel-qcow2-util-linux-075d2c0754f3723a68ad61755709fa2f0af604b4.tar.gz
kernel-qcow2-util-linux-075d2c0754f3723a68ad61755709fa2f0af604b4.tar.xz
kernel-qcow2-util-linux-075d2c0754f3723a68ad61755709fa2f0af604b4.zip
include: move sys/sysmacros.h to c.h
The file is no portable (#ifdef HAVE_SYS_SYSMACROS_H is necessary), but needed on many places. It seems better to keep it in c.h. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/c.h')
-rw-r--r--include/c.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/c.h b/include/c.h
index aec34394d..08dab934a 100644
--- a/include/c.h
+++ b/include/c.h
@@ -21,6 +21,10 @@
# include <err.h>
#endif
+#ifdef HAVE_SYS_SYSMACROS_H
+# include <sys/sysmacros.h> /* for major, minor */
+#endif
+
/*
* Compiler-specific stuff
*/