aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-02-15 06:36:14 +0000
committerTimo Teräs <timo.teras@iki.fi>2017-02-15 06:36:14 +0000
commitedcb230cb679992ceff9c178ca8079c1737598e4 (patch)
treef88673474506f6d854ab011f2c23b5fc8ab1cc8d
parent1ab30ef138c7b4200ee7c543bafa9502869799a3 (diff)
downloadaports-edcb230cb679992ceff9c178ca8079c1737598e4.tar.gz
aports-edcb230cb679992ceff9c178ca8079c1737598e4.tar.bz2
aports-edcb230cb679992ceff9c178ca8079c1737598e4.tar.xz
community/tclx: add missing patch
-rw-r--r--community/tclx/rresvport.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/community/tclx/rresvport.patch b/community/tclx/rresvport.patch
new file mode 100644
index 0000000000..ec89602116
--- /dev/null
+++ b/community/tclx/rresvport.patch
@@ -0,0 +1,20 @@
+Fixes missing rresvport clib function from BSD.
+
+diff -Naur tclx8.4.orig/unix/tclXunixSock.c tclx8.4/unix/tclXunixSock.c
+--- tclx8.4.orig/unix/tclXunixSock.c 2017-02-09 13:26:40.000000000 -0600
++++ tclx8.4/unix/tclXunixSock.c 2017-02-09 13:27:14.000000000 -0600
+@@ -198,12 +198,14 @@
+ /*
+ * Allocate a reserved port if requested.
+ */
++#ifdef HAVE_RRESVPORT
+ if (getReserved) {
+ int port;
+ if (rresvport (&port) < 0)
+ goto unixError;
+ local.sin_port = port;
+ }
++#endif
+
+ /*
+ * Open a socket and bind an address and port to it.