]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
syscall: set default constants for Inline::C platforms
authorEric Wong <e@80x24.org>
Mon, 8 Apr 2024 09:48:43 +0000 (09:48 +0000)
committerEric Wong <e@80x24.org>
Mon, 8 Apr 2024 20:07:41 +0000 (20:07 +0000)
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>
lib/PublicInbox/Syscall.pm

index 829cfa3c5fa53e1b1df684b7e735e617362bb562..99af5bf544c0d60cf65e19de5eefe522affa86c3 100644 (file)
@@ -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