Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
OSX compat: IPPORT_MAX is not defined
Vsevolod Stakhov committed 6 years ago
commit da68718e461eb13d96321983e1108fc2eb8739c0
parent d60800126f1595ba7fccc47766365f42c726e09f
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;