summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Kigwana <ekigwana@users.noreply.github.com>2017-08-11 21:51:52 +0000
committerGitHub <noreply@github.com>2017-08-11 21:51:52 +0000
commitfea8d2e506a40f80f9062aa9c98f403518782f27 (patch)
treec945982ac567376ba62a1b5ef194189cb13acbc6
parent5cecffad475735d672305fcf0163fd79d3b93ff9 (diff)
downloadopen-iscsi-fea8d2e506a40f80f9062aa9c98f403518782f27.tar.gz
Update bnx2x.c
Release notes for glibc-2.25 state: The inclusion of <sys/sysmacros.h> by <sys/types.h> is deprecated. This means that in a future release, the macros “major”, “minor”, and “makedev” will only be available from <sys/sysmacros.h>. These macros are not part of POSIX nor XSI, and their names frequently collide with user code; see for instance glibc bug 19239 and Red Hat bug 130601. <stdlib.h> includes <sys/types.h> under _GNU_SOURCE, and C++ code presently cannot avoid being compiled under _GNU_SOURCE, exacerbating the problem.
-rw-r--r--iscsiuio/src/unix/libs/bnx2x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/iscsiuio/src/unix/libs/bnx2x.c b/iscsiuio/src/unix/libs/bnx2x.c
index 1e8f532..3df6d5f 100644
--- a/iscsiuio/src/unix/libs/bnx2x.c
+++ b/iscsiuio/src/unix/libs/bnx2x.c
@@ -45,6 +45,7 @@
#include <linux/ethtool.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
+#include <sys/sysmacros.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/user.h>