Index: src/net/meson.build
--- src/net/meson.build.orig
+++ src/net/meson.build
@@ -33,7 +33,6 @@ have_local_socket = not is_windows and get_option('loc
 net_features.set('HAVE_UN', have_local_socket)
 
 if have_local_socket
-  net_features.set('HAVE_STRUCT_UCRED', compiler.has_header_symbol('sys/socket.h', 'struct ucred') and compiler.has_header_symbol('sys/socket.h', 'SO_PEERCRED'))
   net_features.set('HAVE_GETPEEREID', compiler.has_function('getpeereid'))
   net_sources += 'LocalSocketAddress.cxx'
 endif
