mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-26 04:35:39 +03:00
20 lines
594 B
Diff
20 lines
594 B
Diff
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.
|