[v2,1/3] eal: correct OS headers in rte_byteorder.h
Checks
Commit Message
From: Tal Shnaiderman <talshn@mellanox.com>
Inclusion of the endian.h header is set only for Linux OS.
Windows endlessness will be determined by the predefined
__BYTE_ORDER__ macro.
Signed-off-by: Tal Shnaiderman <talshn@mellanox.com>
---
lib/librte_eal/include/generic/rte_byteorder.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -17,7 +17,7 @@
#include <stdint.h>
#ifdef RTE_EXEC_ENV_FREEBSD
#include <sys/endian.h>
-#else
+#elif defined RTE_EXEC_ENV_LINUX
#include <endian.h>
#endif