Blame SOURCES/open-iscsi-2.0.874-38-Update-bnx2.c.patch
|
|
47585c |
From 5cecffad475735d672305fcf0163fd79d3b93ff9 Mon Sep 17 00:00:00 2001
|
|
|
47585c |
From: Edward Kigwana <ekigwana@users.noreply.github.com>
|
|
|
47585c |
Date: Fri, 11 Aug 2017 21:50:40 +0000
|
|
|
47585c |
Subject: [PATCH] Update bnx2.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/bnx2.c | 1 +
|
|
|
47585c |
1 file changed, 1 insertion(+)
|
|
|
47585c |
|
|
|
47585c |
diff --git a/iscsiuio/src/unix/libs/bnx2.c b/iscsiuio/src/unix/libs/bnx2.c
|
|
|
47585c |
index 457bdba283e8..c68131c0ca24 100644
|
|
|
47585c |
--- a/iscsiuio/src/unix/libs/bnx2.c
|
|
|
47585c |
+++ b/iscsiuio/src/unix/libs/bnx2.c
|
|
|
47585c |
@@ -41,6 +41,7 @@
|
|
|
47585c |
#include <string.h>
|
|
|
47585c |
#include <arpa/inet.h>
|
|
|
47585c |
#include <sys/mman.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 |
|