From: Ophir Munk Date: Wed, 24 Jan 2018 14:12:13 +0000 (+0000) Subject: net/vdev_netvsc: fix build without C11 and pedantic X-Git-Tag: spdx-start~13 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=788203582cdeaea334c044858e92cf802083deb4;p=dpdk.git net/vdev_netvsc: fix build without C11 and pedantic Remove CFLAGS -std=c11 and -pedantic in order to guarantee a successful vdev_netvsc compilation on old Linux distributions. Otherwise old GCC compilers may complain as follows: cc1: error: unrecognized command line option -std=c11 Fixes: 6086ab3bb3d2 ("net/vdev_netvsc: introduce Hyper-V platform driver") Signed-off-by: Ophir Munk Acked-by: Matan Azrad --- diff --git a/drivers/net/vdev_netvsc/Makefile b/drivers/net/vdev_netvsc/Makefile index f2b2ac5ec5..45351b8c43 100644 --- a/drivers/net/vdev_netvsc/Makefile +++ b/drivers/net/vdev_netvsc/Makefile @@ -12,7 +12,7 @@ EXPORT_MAP := rte_pmd_vdev_netvsc_version.map # Additional compilation flags. CFLAGS += -O3 CFLAGS += -g -CFLAGS += -std=c11 -pedantic -Wall -Wextra +CFLAGS += -Wall -Wextra CFLAGS += -D_XOPEN_SOURCE=600 CFLAGS += -D_BSD_SOURCE CFLAGS += -D_DEFAULT_SOURCE