drivers: remove duplicated compiler flags
[dpdk.git] / drivers / net / vdev_netvsc / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
3
4 if not is_linux
5         build = false
6         reason = 'only supported on linux'
7 endif
8 sources = files('vdev_netvsc.c')
9
10 allow_experimental_apis = true
11
12 cflags_options = [
13         '-D_BSD_SOURCE',
14         '-D_DEFAULT_SOURCE',
15         '-D_XOPEN_SOURCE=600'
16 ]
17 foreach option:cflags_options
18         if cc.has_argument(option)
19                 cflags += option
20         endif
21 endforeach