opnsense-ports/irc/ctrlproxy/files/patch-lib_connection.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

18 lines
351 B
C

$FreeBSD$
--- lib/connection.c.orig
+++ lib/connection.c
@@ -676,8 +676,12 @@
pid_t pid;
int sock[2];
+#ifdef __FreeBSD__
+ if (socketpair(PF_LOCAL, SOCK_STREAM, 0, sock) == -1) {
+#else
if (socketpair(PF_UNIX, SOCK_STREAM, AF_LOCAL, sock) == -1) {
+#endif
network_log(LOG_ERROR, s, "socketpair: %s", strerror(errno));
return -1;
}