eal/windows: add missing stdint include
authorTal Shnaiderman <talshn@nvidia.com>
Tue, 20 Oct 2020 08:48:15 +0000 (11:48 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 20 Oct 2020 11:46:32 +0000 (13:46 +0200)
Following the addition of the in_addr/in6_addr structs
to in.h the header file must have stdint.h included
for the definitions of the uint8_t/uint32_t types used
within the new structs.

Not having it could results in the following errors
in places where in.h is included:

in.h:30:2: error: unknown type name 'uint32_t'
        uint32_t s_addr;

in.h:34:2: error: unknown type name 'uint8_t'
        uint8_t s6_addr[16];

Fixes: f40a74cfcf0 ("eal/windows: improve compatibility networking headers")

Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
lib/librte_eal/windows/include/netinet/in.h

index be1469e..6455b9b 100644 (file)
@@ -5,6 +5,7 @@
 #ifndef _IN_H_
 #define _IN_H_
 
+#include <stdint.h>
 #include <sys/socket.h>
 
 #define IPPROTO_IP         0