net/*/base: allow experimental APIs

This functionality was missed while adding new drivers to
the meson build.

Fixes: bfabd06000 ("net/avf: support meson build")
Fixes: 30d3d01683 ("net/qede: add in meson build")

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
Ilya Maximets 2018-10-04 16:18:35 +03:00 committed by Ferruh Yigit
parent 4f1ed78ebd
commit b9788afec5
2 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,9 @@ sources = [
error_cflags = ['-Wno-pointer-to-int-cast']
c_args = cflags
if allow_experimental_apis
c_args += '-DALLOW_EXPERIMENTAL_API'
endif
foreach flag: error_cflags
if cc.has_argument(flag)
c_args += flag

View File

@ -45,6 +45,9 @@ error_cflags = [
'-Wno-pointer-bool-conversion',
]
c_args = cflags
if allow_experimental_apis
c_args += '-DALLOW_EXPERIMENTAL_API'
endif
foreach flag: error_cflags
if cc.has_argument(flag)
c_args += flag