From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id F11F9567D for ; Tue, 29 Mar 2016 14:44:12 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 29 Mar 2016 05:44:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,410,1455004800"; d="scan'208";a="920956570" Received: from unknown ([10.217.248.155]) by orsmga001.jf.intel.com with SMTP; 29 Mar 2016 05:44:10 -0700 Received: by (sSMTP sendmail emulation); Tue, 29 Mar 2016 14:44:09 +0200 From: Daniel Mrzyglod To: jan@semihalf.com, jpa@semihalf.com, netanel@amazon.com, evgenys@amazon.com Cc: dev@dpdk.org Date: Tue, 29 Mar 2016 14:43:54 +0200 Message-Id: <1459255434-9936-3-git-send-email-danielx.t.mrzyglod@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1459255434-9936-1-git-send-email-danielx.t.mrzyglod@intel.com> References: <1459255434-9936-1-git-send-email-danielx.t.mrzyglod@intel.com> Subject: [dpdk-dev] [PATCH 2/2] ena: Fix Compilation for freebsd X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2016 12:44:13 -0000 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" #error "Invalid platform" ^ compilation terminated due to -Wfatal-errors. Signed-off-by: Daniel Mrzyglod --- drivers/net/ena/base/ena_plat.h | 2 ++ drivers/net/ena/base/ena_plat_dpdk.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/drivers/net/ena/base/ena_plat.h b/drivers/net/ena/base/ena_plat.h index 278175f..b5b6454 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 e245e34..aab2ac8 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 * -- 2.5.5