diff options
Diffstat (limited to 'recipes-extended/dpdk/dpdk/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch')
-rw-r--r-- | recipes-extended/dpdk/dpdk/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/recipes-extended/dpdk/dpdk/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch b/recipes-extended/dpdk/dpdk/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch deleted file mode 100644 index c8940446..00000000 --- a/recipes-extended/dpdk/dpdk/0001-include-sys-sysmacros.h-for-major-minor-defintions.patch +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | Subject: [PATCH] include <sys/sysmacros.h> for major/minor defintions | ||
2 | |||
3 | glibc 2.25 is warning about it if applications depend on | ||
4 | sys/types.h for these macros, it expects to be included | ||
5 | from <sys/sysmacros.h> | ||
6 | |||
7 | Fixes | ||
8 | | Grow.c:3534:13: error: In the GNU C Library, "minor" is defined | ||
9 | | by <sys/sysmacros.h>. For historical compatibility, it is | ||
10 | | currently defined by <sys/types.h> as well, but we plan to | ||
11 | | remove this soon. To use "minor", include <sys/sysmacros.h> | ||
12 | | directly. If you did not intend to use a system-defined macro | ||
13 | | "minor", you should undefine it after including <sys/types.h>. [-Werror] | ||
14 | | Query.c: In function 'Query': | ||
15 | | Query.c:105:13: error: In the GNU C Library, "makedev" is defined | ||
16 | | by <sys/sysmacros.h>. For historical compatibility, it is | ||
17 | | currently defined by <sys/types.h> as well, but we plan to | ||
18 | | remove this soon. To use "makedev", include <sys/sysmacros.h> | ||
19 | | directly. If you did not intend to use a system-defined macro | ||
20 | | "makedev", you should undefine it after including <sys/types.h>. [-Werror] | ||
21 | | makedev((unsigned)disc.major,(unsigned)disc.minor) == stb.st_rdev) | ||
22 | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
23 | |||
24 | Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com> | ||
25 | --- | ||
26 | Upstream-Status: Pending | ||
27 | |||
28 | |||
29 | --- a/lib/librte_eal/linuxapp/eal/eal_pci_uio.cold 2017-02-27 17:36:15.984931159 +0800 | ||
30 | +++ b/lib/librte_eal/linuxapp/eal/eal_pci_uio.c 2017-02-27 17:36:57.520929721 +0800 | ||
31 | @@ -39,6 +39,7 @@ | ||
32 | #include <sys/stat.h> | ||
33 | #include <sys/mman.h> | ||
34 | #include <linux/pci_regs.h> | ||
35 | +#include <sys/sysmacros.h> | ||
36 | |||
37 | #if defined(RTE_ARCH_X86) | ||
38 | #include <sys/io.h> | ||