net/af_xdp: fix meson for non Linux platforms

Message ID 20190405152041.47092-1-ferruh.yigit@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Ferruh Yigit
Headers
Series net/af_xdp: fix meson for non Linux platforms |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Ferruh Yigit April 5, 2019, 3:20 p.m. UTC
  Fixes: 55bcda7b3515 ("net/af_xdp: introduce AF XDP PMD driver")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
 drivers/net/af_xdp/meson.build | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
  

Patch

diff --git a/drivers/net/af_xdp/meson.build b/drivers/net/af_xdp/meson.build
index 840c93728..e3d86c39a 100644
--- a/drivers/net/af_xdp/meson.build
+++ b/drivers/net/af_xdp/meson.build
@@ -1,6 +1,7 @@ 
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2019 Intel Corporation
 
+build = false
 if host_machine.system() == 'linux'
 	bpf_dep = dependency('libbpf', required: false)
 	if bpf_dep.found()
@@ -10,8 +11,6 @@  if host_machine.system() == 'linux'
 		if bpf_dep.found() and cc.has_header('bpf/xsk.h', dependencies: bpf_dep) and cc.has_header('linux/if_xdp.h')
 			build = true
 			pkgconfig_extra_libs += '-lbpf'
-		else
-			build = false
 		endif
 	endif
 	ext_deps += bpf_dep