summaryrefslogtreecommitdiff
path: root/net-misc/snarf/files/snarf-fix-build-for-clang16.patch
blob: a239696ff8f179ff6f9fc12c3b7af1394dcd04a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Clang16 will not allow implicit function declarations by default.
This patch overhauls the source to make it build with clang16 defaults.

This patch was sent upstream via mail.
Bug: https://bugs.gentoo.org/874012

# Pascal Jäger <pascal.jaeger@leimstift.de> (2022-11-23)

--- a/http.c
+++ b/http.c
@@ -2,6 +2,7 @@
 
 #include <config.h>
 
+#include <ctype.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
--- a/util.c
+++ b/util.c
@@ -33,8 +33,11 @@
 #include <errno.h>
 #include <time.h>
 #include <libgen.h>
-#include "url.h"
+#include "ftp.h"
+#include "gopher.h"
+#include "http.h"
 #include "options.h"
+#include "url.h"
 
 
 char output_buf[BUFSIZ];