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 <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2171>
This commit is contained in:
Alan Coopersmith 2026-04-12 17:47:46 -07:00 committed by Marge Bot
parent 4acdba224d
commit b289d5e2e1

View file

@ -203,8 +203,19 @@ if conf_data.get('HAVE_GETPEEREID').to_int() == 0 and conf_data.get('HAVE_GETPEE
endif endif
endif endif
conf_data.set(
'BSD44SOCKETS',
cc.has_member(
'struct sockaddr_in', 'sin_len',
prefix: ['#include <sys/types.h>', '#include <sys/socket.h>',
'#include <netinet/in.h>'],
) ? '1' : false,
description: 'Define to 1 if `struct sockaddr_in\' has a `sin_len\' member',
)
conf_data.set('TCPCONN', '1') conf_data.set('TCPCONN', '1')
conf_data.set('UNIXCONN', host_machine.system() != 'windows' ? '1' : false) 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('IPv6', build_ipv6 ? '1' : false)
conf_data.set('COMPOSITE', '1') conf_data.set('COMPOSITE', '1')