eal/windows: improve compatibility networking headers
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Mon, 28 Sep 2020 21:50:50 +0000 (00:50 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 14 Oct 2020 22:39:10 +0000 (00:39 +0200)
commitf40a74cfcf029a81569b7e8e99301c91cce832d6
treec424d7e769b4f57776788bd0f7bb48deee9dcfdf
parentb5741b570482c59ef53a1ea1ac0ee266295ce6bc
eal/windows: improve compatibility networking headers

Extend compatibility header system to support librte_cmdline.

pthread.h has to include windows.h, which exposes struct in_addr, etc.
conflicting with compatibility headers. WIN32_LEAN_AND_MEAN macro
is required to disable this behavior. Use rte_windows.h to define
WIN32_LEAN_AND_MEAN for pthread library.

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_eal/windows/include/arpa/inet.h [new file with mode: 0644]
lib/librte_eal/windows/include/netinet/in.h
lib/librte_eal/windows/include/sys/socket.h [new file with mode: 0644]