ports/irc/ctrlproxy/files/patch-lib_connection.c
Mathieu Arnold 8dab11a002 Remove $FreeBSD$ from patches files in categories a-j.
With hat:	portmgr
Sponsored by:	Absolight
2015-05-22 13:34:20 +00:00

15 lines
339 B
C

--- 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;
}