diff options
author | Eric Wong <e@80x24.org> | 2024-04-08 09:48:43 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2024-04-08 20:07:41 +0000 |
commit | 832556492d3b94f9cadf9a4d249b519f30bae64d (patch) | |
tree | a7535cf06a060d7e7dbd718ca0c02136e8313fba /lib/PublicInbox/Syscall.pm | |
parent | a145f5acf90fff0b146e6e871925950f62fb426a (diff) | |
download | public-inbox-832556492d3b94f9cadf9a4d249b519f30bae64d.tar.gz |
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 <gbs@canishe.com> Tested-by: Gaelan Steele <gbs@canishe.com>
Diffstat (limited to 'lib/PublicInbox/Syscall.pm')
-rw-r--r-- | lib/PublicInbox/Syscall.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/PublicInbox/Syscall.pm b/lib/PublicInbox/Syscall.pm index 829cfa3c..99af5bf5 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 |