Files
macports-ports/net/tcpick/files/implicit.patch
Ryan Schmidt bcfc88fbde tcpick: Add patches from Debian
Fixes build failures, a CVE, and some other bugs.

Closes: https://trac.macports.org/ticket/63767
2021-11-02 20:09:53 -05:00

20 lines
668 B
Diff

Fix implicit declaration of function exit.
--- a/configure.orig 2005-01-18 15:39:23.000000000 -0600
+++ b/configure 2021-11-02 20:03:01.000000000 -0500
@@ -3393,6 +3393,7 @@
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <ctype.h>
+#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
@@ -3942,6 +3943,7 @@
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <ctype.h>
+#include <stdlib.h>
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))