Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
OSX compat: IPPORT_MAX is not defined
Vsevolod Stakhov committed 6 years ago
commit da68718e461eb13d96321983e1108fc2eb8739c0
parent d608001
1 file changed +3 -0
modified external/libfetch/fetch.c
@@ -428,6 +428,9 @@ fetchParseURL(const char *URL)
		}
		/* pkg extension allow for ssh compat */
		/*if (n < 1 || n > IPPORT_MAX) */
+
#ifndef IPPORT_MAX
+
#define IPPORT_MAX 65535
+
#endif
		if (n < 0 || n > IPPORT_MAX)
			goto ouch;
		u->port = n;