From: Mike Frysinger Date: Sun, 17 Apr 2016 02:30:45 +0000 (-0400) Subject: include sys/sysmacros.h for major/minor/makedev X-Git-Tag: v2.0.0-rc1~47 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=aacf7cff26a1ee4cb4528f6f89569a435d9db991;p=mtd-utils.git 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 Signed-off-by: Brian Norris --- 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 #include #include +#include #include "version.h" #ifndef PROGRAM_NAME