$NetBSD: patch-tools_qemu-xen_configure,v 1.2 2021/09/22 21:18:12 bouyer Exp $

-lrt is needed for shm_open()
-stopgap measure to make the package build on HEAD: ignore eventfd

--- tools/qemu-xen/configure.orig	2020-11-06 16:32:03.000000000 +0100
+++ tools/qemu-xen/configure	2021-09-22 22:09:20.075746457 +0200
@@ -841,6 +841,7 @@
   audio_drv_list="oss try-sdl"
   audio_possible_drivers="oss sdl"
   oss_lib="-lossaudio"
+  LIBS="-lrt $LIBS"
   HOST_VARIANT_DIR="netbsd"
   supported_os="yes"
 ;;
@@ -4440,6 +4441,7 @@
 if compile_prog "" "" ; then
   eventfd=yes
 fi
+eventfd=no
 
 # check if memfd is supported
 memfd=no
