From b289d5e2e1ae85f5a9dcdefdc5d9e091e3de9de2 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 12 Apr 2026 17:47:46 -0700 Subject: [PATCH] meson: define BSD44SOCKETS and LOCALCONN for xtrans when appropriate These were defined for autoconf by xtrans.m4 but got missed in the conversion to meson. Signed-off-by: Alan Coopersmith Part-of: --- include/meson.build | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/meson.build b/include/meson.build index c7e3b0708..3db62aaf4 100644 --- a/include/meson.build +++ b/include/meson.build @@ -203,8 +203,19 @@ if conf_data.get('HAVE_GETPEEREID').to_int() == 0 and conf_data.get('HAVE_GETPEE endif endif +conf_data.set( + 'BSD44SOCKETS', + cc.has_member( + 'struct sockaddr_in', 'sin_len', + prefix: ['#include ', '#include ', + '#include '], + ) ? '1' : false, + description: 'Define to 1 if `struct sockaddr_in\' has a `sin_len\' member', +) + conf_data.set('TCPCONN', '1') conf_data.set('UNIXCONN', host_machine.system() != 'windows' ? '1' : false) +conf_data.set('LOCALCONN', host_machine.system() == 'sunos' ? '1' : false) conf_data.set('IPv6', build_ipv6 ? '1' : false) conf_data.set('COMPOSITE', '1')