[PATCH rdma-core] ibacm: remove include of net/if.h due to conflict

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Tzafrir Cohen <tzafrirc@xxxxxxxxxxxx>

Certain versions of linux-headers nad glibc-headers had both an enum with
identifiers name IFF_* (e.g.: IFF_UP). See e.g.:
https://bugzilla.redhat.com/show_bug.cgi?id=1300256 .

Remove inclusion if <net/if.h> (<linux/if.h> is included through the
netlink3 headers).

Fixes: db109a15 ('ibacm: Replace ioctl with netlink')
Signed-off-by: Tzafrir Cohen <tzafrirc@xxxxxxxxxxxx>
Signed-off-by: Noa Osherovich <noaos@xxxxxxxxxxxx>
Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
---
PR: https://github.com/linux-rdma/rdma-core/pull/489
---
 ibacm/src/acm_util.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/ibacm/src/acm_util.c b/ibacm/src/acm_util.c
index 6b3062fa..a1fe922b 100644
--- a/ibacm/src/acm_util.c
+++ b/ibacm/src/acm_util.c
@@ -33,7 +33,6 @@
 #include <string.h>
 #include <unistd.h>
 #include <arpa/inet.h>
-#include <net/if.h>
 #include <sys/socket.h>
 #include <sys/types.h>
 #include <errno.h>
--
2.19.1




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux