From: Eric Wong Date: Mon, 8 Apr 2024 09:48:43 +0000 (+0000) Subject: syscall: set default constants for Inline::C platforms X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=832556492d3b94f9cadf9a4d249b519f30bae64d;p=thirdparty%2Fpublic-inbox.git syscall: set default constants for Inline::C platforms This fixes compile errors on platforms we can't explicitly support from pure Perl due to the lack of syscall stability guarantees by the OS developers. Reported-by: Gaelan Steele Tested-by: Gaelan Steele --- diff --git a/lib/PublicInbox/Syscall.pm b/lib/PublicInbox/Syscall.pm index 829cfa3c5..99af5bf54 100644 --- a/lib/PublicInbox/Syscall.pm +++ b/lib/PublicInbox/Syscall.pm @@ -317,6 +317,10 @@ BEGIN { ) } $PACK{CMSG_ALIGN_size} = SIZEOF_size_t; + $PACK{SIZEOF_cmsghdr} //= 0; + $PACK{TMPL_cmsg_len} //= undef; + $PACK{CMSG_DATA_off} //= undef; + $PACK{TMPL_msghdr} //= undef; } # SFD_CLOEXEC is arch-dependent, so IN_CLOEXEC may be, too