freebsd-ports/net-p2p/c-lightning/files/patch-ccan_ccan_fdpass_fdpass.c
Piotr Kubaj 749702a3ec 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)
2020-01-21 10:48:58 +00:00

10 lines
296 B
C

--- ccan/ccan/fdpass/fdpass.c.orig 2020-01-20 22:03:36 UTC
+++ ccan/ccan/fdpass/fdpass.c
@@ -1,6 +1,7 @@
/* CC0 license (public domain) - see LICENSE file for details */
#include <ccan/fdpass/fdpass.h>
#include <sys/socket.h>
+#include <sys/types.h>
#include <errno.h>
#include <string.h>