81ba1cfb2b875c6efeac9b703de7b3bae1537416
[openwrt/openwrt.git] / tools / mtd-utils / patches / 120-include_sysmacros.patch
1 From 9a06f45ec71116d76ee4b268ebe1b33d45b06fc0 Mon Sep 17 00:00:00 2001
2 From: Mike Frysinger <vapier@gentoo.org>
3 Date: Sat, 16 Apr 2016 22:10:43 -0400
4 Subject: [PATCH mtd-utils] include sys/sysmacros.h for major/minor/makedev
5
6 These functions have always been defined in sys/sysmacros.h under
7 Linux C libraries. For some, including sys/types.h implicitly
8 includes that as well, but glibc wants to deprecate that, and some
9 others already have. Include the header explicitly for the funcs.
10
11 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 ---
13 include/common.h | 1 +
14 1 file changed, 1 insertion(+)
15
16 --- a/include/common.h
17 +++ b/include/common.h
18 @@ -27,6 +27,7 @@
19 #include <fcntl.h>
20 #include <errno.h>
21 #include <inttypes.h>
22 +#include <sys/sysmacros.h>
23 #include "version.h"
24
25 #ifndef PROGRAM_NAME