]> www.infradead.org Git - mtd-utils.git/commitdiff
include sys/sysmacros.h for major/minor/makedev
authorMike Frysinger <vapier@gentoo.org>
Sun, 17 Apr 2016 02:30:45 +0000 (22:30 -0400)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 18 Apr 2016 16:32:49 +0000 (09:32 -0700)
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>
include/common.h

index fb0ca8345cf53b58c1535b65ed3bd087cdcd6db2..8cb314276051cc0f87a493774c4efde532219b36 100644 (file)
@@ -28,6 +28,7 @@
 #include <errno.h>
 #include <features.h>
 #include <inttypes.h>
+#include <sys/sysmacros.h>
 #include "version.h"
 
 #ifndef PROGRAM_NAME