diff options
Diffstat (limited to 'net-misc/snarf/files/snarf-fix-build-for-clang16.patch')
-rw-r--r-- | net-misc/snarf/files/snarf-fix-build-for-clang16.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/net-misc/snarf/files/snarf-fix-build-for-clang16.patch b/net-misc/snarf/files/snarf-fix-build-for-clang16.patch new file mode 100644 index 000000000000..a239696ff8f1 --- /dev/null +++ b/net-misc/snarf/files/snarf-fix-build-for-clang16.patch @@ -0,0 +1,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]; |