Re: [libvirt PATCH 1/1] meson: Fix XDR check for GNU/Hurd

2023-10-25 Thread Michal Prívozník
On 10/24/23 18:54, Andrea Bolognani wrote:
> The situation is the same as Linux: since glibc no
> longer includes the RPC functionality, libtirpc must
> be used to complement it.
> 
> Signed-off-by: Andrea Bolognani 
> ---
>  meson.build | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Reviewed-by: Michal Privoznik 

Michal



[libvirt PATCH 1/1] meson: Fix XDR check for GNU/Hurd

2023-10-24 Thread Andrea Bolognani
The situation is the same as Linux: since glibc no
longer includes the RPC functionality, libtirpc must
be used to complement it.

Signed-off-by: Andrea Bolognani 
---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index de23fbda1e..47748febb8 100644
--- a/meson.build
+++ b/meson.build
@@ -867,7 +867,7 @@ if not get_option('driver_remote').disabled()
   # use extra library as it's provided by libc directly.
   if host_machine.system() == 'windows'
 xdr_dep = cc.find_library('portablexdr', required: 
get_option('driver_remote'))
-  elif host_machine.system() == 'linux'
+  elif host_machine.system() in [ 'linux', 'gnu' ]
 xdr_dep = dependency('libtirpc', required: get_option('driver_remote'))
   elif host_machine.system() in [ 'freebsd', 'darwin' ]
 xdr_dep = cc.find_library('c', required: get_option('driver_remote'))
-- 
2.41.0