net/bnx2x: fix meson build
[dpdk.git] / drivers / net / bnx2x / bnx2x_osal.h
index 7cd2932..c4818bb 100644 (file)
@@ -8,7 +8,11 @@
 #ifndef BNX2X_OSAL_H
 #define BNX2X_OSAL_H
 
+#ifdef RTE_EXEC_ENV_FREEBSD
 #include <sys/stat.h>
+#else
+#include <linux/types.h>
+#endif
 
 #if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
 #ifndef __LITTLE_ENDIAN
 #undef __LITTLE_ENDIAN
 #endif
 
+#ifdef RTE_EXEC_ENV_FREEBSD
 #define __le16         uint16_t
 #define __le32         uint32_t
 #define __le64         uint64_t
+#endif
 
 #endif /* BNX2X_OSAL_H */