From: Mike Frysinger Date: Wed, 20 Apr 2016 16:52:19 +0000 (-0400) Subject: include sys/sysmacros.h for major/minor X-Git-Tag: fio-2.9~2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=250e878ab5f26b32facbb6e134f3738aa1aa0120 include sys/sysmacros.h for major/minor 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. The mtd change is already in upstream mtd-utils too. Signed-off-by: Mike Frysinger Signed-off-by: Jens Axboe --- diff --git a/os/os-linux.h b/os/os-linux.h index 9e708f04..23c16b65 100644 --- a/os/os-linux.h +++ b/os/os-linux.h @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include diff --git a/oslib/libmtd_common.h b/oslib/libmtd_common.h index a1233232..9768066b 100644 --- a/oslib/libmtd_common.h +++ b/oslib/libmtd_common.h @@ -30,6 +30,7 @@ #include #include #include +#include #ifndef PROGRAM_NAME # error "You must define PROGRAM_NAME before including this header"