summaryrefslogtreecommitdiff
path: root/community/scanssh/gcc14.patch
diff options
context:
space:
mode:
authormio <miyopan@e.email>2024-09-07 03:42:26 +0000
committeromni <omni+alpine@hack.org>2024-09-07 11:45:10 +0000
commitdf80a9ed7657632df9fe8283b3e1fea5983dcc5c (patch)
tree5e53df8cb0ba02155b9dcbe98c1923acc2eae144 /community/scanssh/gcc14.patch
parent7d885ba7dd3a0358dd0b9d6967444637e7eaa6e0 (diff)
downloadaports-df80a9ed7657632df9fe8283b3e1fea5983dcc5c.zip
community/scanssh: fix build with gcc 14
Diffstat (limited to 'community/scanssh/gcc14.patch')
-rw-r--r--community/scanssh/gcc14.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/community/scanssh/gcc14.patch b/community/scanssh/gcc14.patch
new file mode 100644
index 00000000000..543786e786d
--- /dev/null
+++ b/community/scanssh/gcc14.patch
@@ -0,0 +1,20 @@
+Fix -Wimplicit-function-declaration error with gcc 14.
+
+Error:
+
+```
+arc4random.c:19:25: error: implicit declaration of function 'time'
+[-Wimplicit-function-declaration]
+ 19 | srandom(time(NULL));
+ | ^~~~
+```
+
+--- scanssh-2.1.3.1-origin/arc4random.c
++++ scanssh-2.1.3.1/arc4random.c
+@@ -1,5 +1,6 @@
+ #include <sys/types.h>
+ #include <stdlib.h>
++#include <time.h>
+
+ #include "config.h"
+