From: Daniel Mrzyglod Date: Tue, 29 Mar 2016 12:43:54 +0000 (+0200) Subject: ena: fix FreeBSD build X-Git-Tag: spdx-start~7150 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b990c617dfd3349b004aabfcad5411639ea3f403;p=dpdk.git ena: fix FreeBSD build FreeBSD was not defined in ena_plat.h ETIME is not defined in FreeBSD. In file included from DPDK/drivers/net/ena/base/ena_com.h:37:0, from DPDK/drivers/net/ena/ena_ethdev.h:39, from DPDK/drivers/net/ena/ena_ethdev.c:41: DPDK/drivers/net/ena/base/ena_plat.h:48:2: error: #error "Invalid platform" Fixes: 99ecfbf845b3 ("ena: import communication layer") Fixes: 9ba7981ec992 ("ena: add communication layer for DPDK") Signed-off-by: Daniel Mrzyglod Acked-by: Bruce Richardson --- diff --git a/drivers/net/ena/base/ena_plat.h b/drivers/net/ena/base/ena_plat.h index 278175f393..b5b6454567 100644 --- a/drivers/net/ena/base/ena_plat.h +++ b/drivers/net/ena/base/ena_plat.h @@ -42,6 +42,8 @@ #else #include "ena_plat_dpdk.h" #endif +#elif defined(__FreeBSD__) +#include "ena_plat_dpdk.h" #elif defined(_WIN32) #include "ena_plat_windows.h" #else diff --git a/drivers/net/ena/base/ena_plat_dpdk.h b/drivers/net/ena/base/ena_plat_dpdk.h index e245e34af9..aab2ac8656 100644 --- a/drivers/net/ena/base/ena_plat_dpdk.h +++ b/drivers/net/ena/base/ena_plat_dpdk.h @@ -57,6 +57,9 @@ typedef uint16_t u16; typedef uint8_t u8; typedef uint64_t dma_addr_t; +#ifndef ETIME +#define ETIME ETIMEDOUT +#endif #define ena_atomic32_t rte_atomic32_t #define ena_mem_handle_t void *