mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-08 19:48:25 +02:00
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:
parent
4acdba224d
commit
b289d5e2e1
1 changed files with 11 additions and 0 deletions
|
|
@ -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')
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue