Blob Blame History Raw
OpenSSL 0.9.7 now includes ctype.h, and because OpenSSL's headers are included
after safe-ctype.h, compilation bombs out.  We include ctype.h to force the
double-inclusion checks in ctype.h to be triggered when we include OpenSSL's
headers, avoiding the whole mess.

--- wget-1.8.2/src/ftp.c	2002-12-13 20:27:59.000000000 -0500
+++ wget-1.8.2/src/ftp.c	2002-12-13 20:27:54.000000000 -0500
@@ -30,6 +30,8 @@
 
 #include <config.h>
 
+#include <ctype.h>
+
 #include <stdio.h>
 #include <stdlib.h>
 #ifdef HAVE_STRING_H
--- wget-1.8.2/src/ftp-basic.c	2002-12-13 20:28:18.000000000 -0500
+++ wget-1.8.2/src/ftp-basic.c	2002-12-13 20:28:12.000000000 -0500
@@ -29,6 +29,8 @@
 
 #include <config.h>
 
+#include <ctype.h>
+
 #include <assert.h>
 #include <stdio.h>
 #include <stdlib.h>
--- wget-1.8.2/src/ftp-ls.c	2002-12-13 20:28:36.000000000 -0500
+++ wget-1.8.2/src/ftp-ls.c	2002-12-13 20:28:31.000000000 -0500
@@ -30,6 +30,8 @@
 
 #include <config.h>
 
+#include <ctype.h>
+
 #include <stdio.h>
 #include <stdlib.h>
 #ifdef HAVE_STRING_H
--- wget-1.8.2/src/http.c	2002-12-13 20:29:07.000000000 -0500
+++ wget-1.8.2/src/http.c	2002-12-13 20:29:13.000000000 -0500
@@ -30,6 +30,8 @@
 
 #include <config.h>
 
+#include <ctype.h>
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
--- wget-1.8.2/src/retr.c	2002-12-13 20:29:49.000000000 -0500
+++ wget-1.8.2/src/retr.c	2002-12-13 20:29:55.000000000 -0500
@@ -29,6 +29,8 @@
 
 #include <config.h>
 
+#include <ctype.h>
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
--- wget-1.8.2/src/main.c	2002-12-13 20:30:14.000000000 -0500
+++ wget-1.8.2/src/main.c	2002-12-13 20:30:17.000000000 -0500
@@ -30,6 +30,8 @@
 
 #include <config.h>
 
+#include <ctype.h>
+
 #include <stdio.h>
 #include <stdlib.h>
 #ifdef HAVE_UNISTD_H
--- wget-1.8.2/src/progress.c	2002-12-13 20:30:07.000000000 -0500
+++ wget-1.8.2/src/progress.c	2002-12-13 20:30:03.000000000 -0500
@@ -29,6 +29,8 @@
 
 #include <config.h>
 
+#include <ctype.h>
+
 #include <stdio.h>
 #include <stdlib.h>
 #ifdef HAVE_STRING_H
--- wget-1.8.2/src/recur.c	2002-12-13 20:30:46.000000000 -0500
+++ wget-1.8.2/src/recur.c	2002-12-13 20:30:43.000000000 -0500
@@ -29,6 +29,8 @@
 
 #include <config.h>
 
+#include <ctype.h>
+
 #include <stdio.h>
 #include <stdlib.h>
 #ifdef HAVE_STRING_H
--- wget-1.8.2/src/res.c	2002-12-13 20:31:02.000000000 -0500
+++ wget-1.8.2/src/res.c	2002-12-13 20:30:59.000000000 -0500
@@ -71,6 +71,8 @@
 # include <config.h>
 #endif
 
+#include <ctype.h>
+
 #include <stdio.h>
 #include <stdlib.h>
 #ifdef HAVE_STRING_H