From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <ncopa@alpinelinux.org>
Received: from mx1.tetrasec.net (mx1.tetrasec.net [74.117.190.25])
 by dpdk.org (Postfix) with ESMTP id 78D8258C6
 for <dev@dpdk.org>; Wed, 13 Mar 2019 18:07:36 +0100 (CET)
Received: from mx1.tetrasec.net (mail.local [127.0.0.1])
 by mx1.tetrasec.net (Postfix) with ESMTP id EE8AD9E03AF;
 Wed, 13 Mar 2019 17:07:35 +0000 (UTC)
Received: from ncopa-desktop.lan (67.63.200.37.customer.cdi.no [37.200.63.67])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest
 SHA256) (No client certificate requested)
 (Authenticated sender: n@tanael.org)
 by mx1.tetrasec.net (Postfix) with ESMTPSA id 125F89E1D55;
 Wed, 13 Mar 2019 17:07:34 +0000 (UTC)
From: Natanael Copa <ncopa@alpinelinux.org>
To: dev@dpdk.org
Cc: Natanael Copa <ncopa@alpinelinux.org>
Date: Wed, 13 Mar 2019 18:06:56 +0100
Message-Id: <20190313170657.16688-15-ncopa@alpinelinux.org>
X-Mailer: git-send-email 2.21.0
In-Reply-To: <20190313170657.16688-1-ncopa@alpinelinux.org>
References: <20190313170657.16688-1-ncopa@alpinelinux.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Subject: [dpdk-dev] [PATCH v3 14/15] net/netvsc: fix compile warning for
	fcntl.h include
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Wed, 13 Mar 2019 17:07:36 -0000

Fix the following warning when building with musl libc:

In file included from ../drivers/net/netvsc/hn_vf.c:14:
/usr/include/sys/fcntl.h:1:2: warning: #warning redirecting incorrect #in=
clude <sys/fcntl.h> to <fcntl.h> [-Wcpp]
 #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
  ^~~~~~~

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
---
 drivers/net/netvsc/hn_vf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/netvsc/hn_vf.c b/drivers/net/netvsc/hn_vf.c
index 3f714ec99..6eeacb659 100644
--- a/drivers/net/netvsc/hn_vf.c
+++ b/drivers/net/netvsc/hn_vf.c
@@ -10,8 +10,8 @@
 #include <errno.h>
 #include <unistd.h>
 #include <dirent.h>
+#include <fcntl.h>
 #include <sys/types.h>
-#include <sys/fcntl.h>
 #include <sys/uio.h>
=20
 #include <rte_ether.h>
--=20
2.21.0