mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-02 11:09:29 +00:00
- Fix socketpair() function invocation
* The socketpair() function is invoked incorrectly causing, it to return EPROTONOSUPPORT everytime. * Changed '#include <gssapi.h>' to '#include <gssapi/gssapi.h>' to prevent warnings emitted by GCC. PR: 131422 Submitted by: Ashish Shukla <wahjava@gmail.com> (maintainer)
This commit is contained in:
parent
25a45ba2cb
commit
a9089018a7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=229307
@ -8,7 +8,7 @@
|
||||
|
||||
PORTNAME= ctrlproxy
|
||||
PORTVERSION= 3.0.8
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= irc
|
||||
MASTER_SITES= http://www.ctrlproxy.org/releases/ \
|
||||
LOCAL/chinsan/ctrlproxy/
|
||||
|
18
irc/ctrlproxy/files/patch-lib_connection.c
Normal file
18
irc/ctrlproxy/files/patch-lib_connection.c
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
$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;
|
||||
}
|
||||
|
18
irc/ctrlproxy/files/patch-lib_listener.h
Normal file
18
irc/ctrlproxy/files/patch-lib_listener.h
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- lib/listener.h.orig
|
||||
+++ lib/listener.h
|
||||
@@ -5,8 +5,12 @@
|
||||
#include "ctrlproxy.h"
|
||||
|
||||
#ifdef HAVE_GSSAPI
|
||||
+#if (__FreeBSD__ >= 7)
|
||||
+#include <gssapi/gssapi.h>
|
||||
+#else
|
||||
#include <gssapi.h>
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
#ifndef G_MODULE_EXPORT
|
||||
#define G_MODULE_EXPORT
|
Loading…
x
Reference in New Issue
Block a user