net: fix redefinition in Windows
authorFady Bader <fady@mellanox.com>
Thu, 23 Jul 2020 07:08:23 +0000 (10:08 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 10 Sep 2020 19:52:04 +0000 (21:52 +0200)
commit507e1ca07bee3c78c4da1262c4c00668d7a1f8ec
treec16aa5fffb73c2da60de6e8e359b50bc3e9bf487
parenta4235b781f5d7a7bda204f24a9d048696a2a484e
net: fix redefinition in Windows

In Windows, s_addr is defined in winsock2.h which is included by windows.h.
It is undefined in order to be defined as part of rte_ether_hdr.

Signed-off-by: Fady Bader <fady@mellanox.com>
Acked-by: Ranjit Menon <ranjit.menon@intel.com>
Tested-by: Pallavi Kadam <pallavi.kadam@intel.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
lib/librte_net/rte_ether.h