From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BBBF2A04AB; Wed, 6 Nov 2019 13:10:16 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 421351C0D4; Wed, 6 Nov 2019 13:10:16 +0100 (CET) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 9D1FB1C0D2 for ; Wed, 6 Nov 2019 13:10:15 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0A2D5220D5; Wed, 6 Nov 2019 07:10:15 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 06 Nov 2019 07:10:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=mesmtp; bh=SKB9uE57sm39k8fHkzznAzV MgU3n6k7KxkkqP8qNGsg=; b=gNN+1XiZL03CKSVp90B7D1l90hSKi2MI6/qABa4 5PKEGMSfJbTPS9yuQih+D2281U0afs/lkmTdeUL8g2aqTMMPZEn+xQnv54ehj5bj ob2jfYuSab2hEhJIBD1ulUs7IcCWHPY6qSY2EHCGu61SBrjdBq0d6EwoMrBExlZQ B+cI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=SKB9uE57sm39k8fHk zznAzVMgU3n6k7KxkkqP8qNGsg=; b=rbUnuow38RBo8RTAsqitMWaCO9mD7xeOW qNAqPNETsyIFocDe2f1SCQUMMQJRgSq2krtWeUI/A643gxWZEHIyn4Y+zl+mVOKp oBiJK05LML+n4DNv3+G1AfLuPmcDalVLIgI16eMjUOQy1ERhCzMEtJHK1JLkxqKw KtCQpWb4GerGovt3j+nmL0p6aHmW8q/0L8XE7TG/mhl1iW4Jb8tCaoZQS3KdcZve EUyfYSSq0NDgt+DBMmkbIcvrjnhI5AZzwTHquFg3b45zkEzwsg9XfeBOjsCE8sTl YjtKUT4ib+I5apaTgwh44lg8wwBKNTo5ED3f5EgKWroB2mhuw4XfA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddujedgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgrshcu ofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukfhppe ejjedrudefgedrvddtfedrudekgeenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhm rghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id AEFCD3060060; Wed, 6 Nov 2019 07:10:13 -0500 (EST) From: Thomas Monjalon To: Wenzhuo Lu , Jingjing Wu , Bernard Iremonger , Olivier Matz Cc: dev@dpdk.org Date: Wed, 6 Nov 2019 13:09:43 +0100 Message-Id: <20191106120943.15967-1-thomas@monjalon.net> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] cmdline: replace FreeBSD ifdef for IP address parsing X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The constants like AF_INET are in sys/socket.h in FreeBSD. The #ifdef macro __FreeBSD__ is replaced with RTE_EXEC_ENV_FREEBSD in order to be consistent across DPDK files, and allow to grep for EXEC_ENV among other benefits. Signed-off-by: Thomas Monjalon --- app/test-pmd/cmdline.c | 2 +- app/test/test_cmdline_ipaddr.c | 2 +- examples/cmdline/commands.c | 2 +- lib/librte_cmdline/cmdline_parse_ipaddr.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 4478069911..74e02d6813 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -11,7 +11,7 @@ #include #include #include -#ifdef __FreeBSD__ +#ifdef RTE_EXEC_ENV_FREEBSD #include #endif #include diff --git a/app/test/test_cmdline_ipaddr.c b/app/test/test_cmdline_ipaddr.c index 2d11ce936c..315ac3a9f8 100644 --- a/app/test/test_cmdline_ipaddr.c +++ b/app/test/test_cmdline_ipaddr.c @@ -6,7 +6,7 @@ #include #include #include -#ifdef __FreeBSD__ +#ifdef RTE_EXEC_ENV_FREEBSD #include #endif diff --git a/examples/cmdline/commands.c b/examples/cmdline/commands.c index 1249ee7a8a..4badffc257 100644 --- a/examples/cmdline/commands.c +++ b/examples/cmdline/commands.c @@ -12,7 +12,7 @@ #include #include #include -#ifdef __FreeBSD__ +#ifdef RTE_EXEC_ENV_FREEBSD #include #endif diff --git a/lib/librte_cmdline/cmdline_parse_ipaddr.c b/lib/librte_cmdline/cmdline_parse_ipaddr.c index 848c1eb07d..4de5ba35ae 100644 --- a/lib/librte_cmdline/cmdline_parse_ipaddr.c +++ b/lib/librte_cmdline/cmdline_parse_ipaddr.c @@ -13,7 +13,7 @@ #include #include #include -#ifdef __FreeBSD__ +#ifdef RTE_EXEC_ENV_FREEBSD #include #endif -- 2.23.0