Blame SOURCES/open-iscsi-2.0.874-39-Update-bnx2x.c.patch

47585c
From fea8d2e506a40f80f9062aa9c98f403518782f27 Mon Sep 17 00:00:00 2001
47585c
From: Edward Kigwana <ekigwana@users.noreply.github.com>
47585c
Date: Fri, 11 Aug 2017 21:51:52 +0000
47585c
Subject: [PATCH] Update bnx2x.c
47585c
MIME-Version: 1.0
47585c
Content-Type: text/plain; charset=UTF-8
47585c
Content-Transfer-Encoding: 8bit
47585c
47585c
Release notes for glibc-2.25 state:
47585c
47585c
The inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated.
47585c
This means that in a future release, the macros “major”, “minor”, and
47585c
“makedev” will only be available from <sys/sysmacros.h>.
47585c
47585c
These macros are not part of POSIX nor XSI, and their names frequently
47585c
collide with user code; see for instance glibc bug 19239 and Red Hat
47585c
bug 130601. <stdlib.h> includes <sys/types.h> under _GNU_SOURCE, and
47585c
C++ code presently cannot avoid being compiled under _GNU_SOURCE,
47585c
exacerbating the problem.
47585c
---
47585c
 iscsiuio/src/unix/libs/bnx2x.c | 1 +
47585c
 1 file changed, 1 insertion(+)
47585c
47585c
diff --git a/iscsiuio/src/unix/libs/bnx2x.c b/iscsiuio/src/unix/libs/bnx2x.c
47585c
index 1e8f532edcdf..3df6d5fdbfa2 100644
47585c
--- a/iscsiuio/src/unix/libs/bnx2x.c
47585c
+++ b/iscsiuio/src/unix/libs/bnx2x.c
47585c
@@ -45,6 +45,7 @@
47585c
 #include <linux/ethtool.h>
47585c
 #include <sys/mman.h>
47585c
 #include <sys/ioctl.h>
47585c
+#include <sys/sysmacros.h>
47585c
 #include <sys/types.h>
47585c
 #include <sys/stat.h>
47585c
 #include <sys/user.h>
47585c
-- 
47585c
2.17.2
47585c