aboutsummaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-04-16 22:30:45 -0400
committerBrian Norris <computersforpeace@gmail.com>2016-04-18 09:32:49 -0700
commitaacf7cff26a1ee4cb4528f6f89569a435d9db991 (patch)
treea023fad180623f5529efdc0d4e2b24bf27084b70 /include/common.h
parent90f2151eb19757a27af2dd710237e69a64740c12 (diff)
include sys/sysmacros.h for major/minor/makedev
These functions have always been defined in sys/sysmacros.h under Linux C libraries. For some, including sys/types.h implicitly includes that as well, but glibc wants to deprecate that, and some others already have. Include the header explicitly for the funcs. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index fb0ca83..8cb3142 100644
--- a/include/common.h
+++ b/include/common.h
@@ -28,6 +28,7 @@
#include <errno.h>
#include <features.h>
#include <inttypes.h>
+#include <sys/sysmacros.h>
#include "version.h"
#ifndef PROGRAM_NAME