eventdev/eth_rx: fix telemetry Rx stats reset
[dpdk.git] / examples / l2fwd-keepalive / meson.build
index 6f7b007..ed49c61 100644 (file)
@@ -6,8 +6,16 @@
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
-ext_deps += cc.find_library('rt')
+allow_experimental_apis = true
+librt = cc.find_library('rt', required: false)
+if not librt.found()
+    build = false
+    subdir_done()
+endif
+
+ext_deps += librt
 deps += 'timer'
 sources = files(
-       'main.c', 'shm.c'
+        'main.c',
+        'shm.c',
 )