summaryrefslogtreecommitdiff
path: root/www-servers/fnord/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-08-11 09:34:39 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-08-11 09:34:39 +0100
commit7e2b5bc2c2e2e045de6095d46c24ee857453adf2 (patch)
tree4387abc7e6be6debdd362738e7976e0d053163a1 /www-servers/fnord/files
parent9b97cf60d2411c33c1b2170b730b345ea9995002 (diff)
gentoo auto-resync : 11:08:2023 - 09:34:39
Diffstat (limited to 'www-servers/fnord/files')
-rw-r--r--www-servers/fnord/files/fnord-1.11-clang-16-build-fix.patch81
1 files changed, 81 insertions, 0 deletions
diff --git a/www-servers/fnord/files/fnord-1.11-clang-16-build-fix.patch b/www-servers/fnord/files/fnord-1.11-clang-16-build-fix.patch
new file mode 100644
index 000000000000..5d841fb8879b
--- /dev/null
+++ b/www-servers/fnord/files/fnord-1.11-clang-16-build-fix.patch
@@ -0,0 +1,81 @@
+Bug: https://bugs.gentoo.org/887331
+--- a/buffer_1.c
++++ b/buffer_1.c
+@@ -2,6 +2,6 @@
+ #include "buffer.h"
+
+ char buffer_1_space[BUFFER_INSIZE];
+-static buffer it = BUFFER_INIT(write,1,buffer_1_space,sizeof buffer_1_space);
++static buffer it = BUFFER_INIT((void *)write,1,buffer_1_space,sizeof buffer_1_space);
+ buffer *buffer_1 = &it;
+
+--- a/buffer_2.c
++++ b/buffer_2.c
+@@ -2,6 +2,6 @@
+ #include "buffer.h"
+
+ char buffer_2_space[BUFFER_INSIZE];
+-static buffer it = BUFFER_INIT(write,2,buffer_2_space,sizeof buffer_2_space);
++static buffer it = BUFFER_INIT((void *)write,2,buffer_2_space,sizeof buffer_2_space);
+ buffer *buffer_2 = &it;
+
+--- a/byte.h
++++ b/byte.h
+@@ -1,7 +1,9 @@
+ #ifndef BYTE_H
+ #define BYTE_H
+
+-#include <sys/cdefs.h>
++#ifdef __cplusplus
++extern "C" {
++#endif
+
+ #ifndef __pure__
+ #define __pure__
+@@ -36,3 +38,6 @@ void byte_zero(void* out, unsigned len);
+ #define byte_equal(s,n,t) (!byte_diff((s),(n),(t)))
+
+ #endif
++#ifdef __cplusplus
++}
++#endif
+--- a/scan.h
++++ b/scan.h
+@@ -1,7 +1,9 @@
+ #ifndef SCAN_H
+ #define SCAN_H
+
+-#include <sys/cdefs.h>
++#ifdef __cplusplus
++extern "C" {
++#endif
+ #ifndef __pure__
+ #define __pure__
+ #endif
+@@ -59,3 +61,6 @@ extern unsigned int scan_charsetnskip(const char *in,const char *charset,unsigne
+ extern unsigned int scan_noncharsetnskip(const char *in,const char *charset,unsigned int limit) __pure__;
+
+ #endif
++#ifdef __cplusplus
++}
++#endif
+--- a/str.h
++++ b/str.h
+@@ -1,7 +1,9 @@
+ #ifndef STR_H
+ #define STR_H
+
+-#include <sys/cdefs.h>
++#ifdef __cplusplus
++extern "C" {
++#endif
+ #ifndef __pure__
+ #define __pure__
+ #endif
+@@ -41,3 +43,6 @@ extern int str_start(const char *a,const char *b) __pure__;
+ #define str_equal(s,t) (!str_diff((s),(t)))
+
+ #endif
++#ifdef __cplusplus
++}
++#endif