From: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
To: jan@semihalf.com, jpa@semihalf.com, netanel@amazon.com,
evgenys@amazon.com
Cc: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 2/2] ena: Fix Compilation for freebsd
Date: Tue, 29 Mar 2016 14:43:54 +0200 [thread overview]
Message-ID: <1459255434-9936-3-git-send-email-danielx.t.mrzyglod@intel.com> (raw)
In-Reply-To: <1459255434-9936-1-git-send-email-danielx.t.mrzyglod@intel.com>
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 <danielx.t.mrzyglod@intel.com>
---
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
next prev parent reply other threads:[~2016-03-29 12:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-29 12:43 [dpdk-dev] [PATCH 0/2] Fix multiple build errors for Amazon ENA driver Daniel Mrzyglod
2016-03-29 12:43 ` [dpdk-dev] [PATCH 1/2] ena: icc fix compilation errors Daniel Mrzyglod
2016-03-29 12:43 ` Daniel Mrzyglod [this message]
2016-03-29 13:13 ` [dpdk-dev] [PATCH 2/2] ena: Fix Compilation for freebsd Bruce Richardson
2016-03-30 17:21 ` [dpdk-dev] [PATCH 0/2] Fix multiple build errors for Amazon ENA driver Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1459255434-9936-3-git-send-email-danielx.t.mrzyglod@intel.com \
--to=danielx.t.mrzyglod@intel.com \
--cc=dev@dpdk.org \
--cc=evgenys@amazon.com \
--cc=jan@semihalf.com \
--cc=jpa@semihalf.com \
--cc=netanel@amazon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).