Created attachment 210911 [details] patch Needs C11 compiler: cc1: error: unrecognized command line option "-std=gnu11" Needs include sys/types.h in fdpass.c: ccan/ccan/fdpass/fdpass.c: In function 'fdpass_send': ccan/ccan/fdpass/fdpass.c:16:12: error: 'register_t' undeclared (first use in this function) 16 | char buf[CMSG_SPACE(sizeof(fd))]; | ^~~~~~~~~~ This fixes build with GCC.
LGTM, thanks!
A commit references this bug: Author: pkubaj Date: Tue Jan 21 10:48:59 UTC 2020 New revision: 523712 URL: https://svnweb.freebsd.org/changeset/ports/523712 Log: net-p2p/c-lightning: fix build on GCC architectures Needs C11 compiler: cc1: error: unrecognized command line option "-std=gnu11" Needs include sys/types.h in fdpass.c: ccan/ccan/fdpass/fdpass.c: In function 'fdpass_send': ccan/ccan/fdpass/fdpass.c:16:12: error: 'register_t' undeclared (first use in this function) 16 | char buf[CMSG_SPACE(sizeof(fd))]; | ^~~~~~~~~~ PR: 243481 Approved by: vd (maintainer) MFH: 2020Q1 (fix build blanket) Changes: head/net-p2p/c-lightning/Makefile head/net-p2p/c-lightning/files/patch-ccan_ccan_fdpass_fdpass.c
A commit references this bug: Author: pkubaj Date: Tue Jan 21 10:50:00 UTC 2020 New revision: 523713 URL: https://svnweb.freebsd.org/changeset/ports/523713 Log: MFH: r523712 net-p2p/c-lightning: fix build on GCC architectures Needs C11 compiler: cc1: error: unrecognized command line option "-std=gnu11" Needs include sys/types.h in fdpass.c: ccan/ccan/fdpass/fdpass.c: In function 'fdpass_send': ccan/ccan/fdpass/fdpass.c:16:12: error: 'register_t' undeclared (first use in this function) 16 | char buf[CMSG_SPACE(sizeof(fd))]; | ^~~~~~~~~~ PR: 243481 Approved by: vd (maintainer) Approved by: portmgr (fix build blanket) Changes: _U branches/2020Q1/ branches/2020Q1/net-p2p/c-lightning/Makefile branches/2020Q1/net-p2p/c-lightning/files/patch-ccan_ccan_fdpass_fdpass.c