net/netvsc: fix include of fcntl.h
authorNatanael Copa <ncopa@alpinelinux.org>
Wed, 13 Mar 2019 17:06:56 +0000 (18:06 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 31 Mar 2019 00:02:26 +0000 (01:02 +0100)
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 #include <sys/fcntl.h> to <fcntl.h> [-Wcpp]

Fixes: dc7680e8597c ("net/netvsc: support integrated VF")
Cc: stable@dpdk.org
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
drivers/net/netvsc/hn_vf.c

index f68e1f9..883272f 100644 (file)
@@ -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>
 
 #include <rte_ether.h>