summaryrefslogtreecommitdiffstats
path: root/irc/ctrlproxy/files/patch-lib_connection.c
blob: 822eedb51e01455bdf97580a78f0c7ed8ae4c54f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- 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;
 	}
 
OpenPOWER on IntegriCloud