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')