1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2018 Luca Boccassi <[email protected]> 3 4if not is_linux 5 build = false 6 reason = 'only supported on linux' 7endif 8sources = files('vdev_netvsc.c') 9 10allow_experimental_apis = true 11 12cflags_options = [ 13 '-Wall', 14 '-Wextra', 15 '-D_BSD_SOURCE', 16 '-D_DEFAULT_SOURCE', 17 '-D_XOPEN_SOURCE=600' 18] 19foreach option:cflags_options 20 if cc.has_argument(option) 21 cflags += option 22 endif 23endforeach 24