Skip to content
Snippets Groups Projects
Commit df80a9ed authored by mio's avatar mio Committed by omni
Browse files

community/scanssh: fix build with gcc 14

parent 7d885ba7
No related branches found
No related tags found
1 merge request!71572community/scanssh: fix build with gcc 14
Pipeline #257270 skipped
......@@ -2,7 +2,7 @@
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=scanssh
pkgver=2.1.3.1
pkgrel=2
pkgrel=3
pkgdesc="Fast SSH server and open proxy scanner"
url="https://github.com/ofalk/scanssh"
arch="all"
......@@ -10,7 +10,9 @@ license="BSD-3-Clause"
options="!check" # no testsuite
makedepends="autoconf automake libpcap-dev libevent-dev libdnet-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ofalk/scanssh/archive/$pkgver.tar.gz"
source="$pkgname-$pkgver.tar.gz::https://github.com/ofalk/scanssh/archive/$pkgver.tar.gz
gcc14.patch
"
prepare() {
default_prepare
......@@ -33,4 +35,5 @@ package() {
sha512sums="
970cbb03aa44fcef62aa03132335e6ecedb083cee98a360b3d781efc8c2d3c169f70c17837b1faaf9ceaa2691a7c619174a9bb185146af50188eaceda5d14adb scanssh-2.1.3.1.tar.gz
72b136f29ce041a7111be2896a5471469eab90c8c8fdfd4eb05fd294796afd9804adc3dc07c894a559cbf16679184ce00b713b0394e9a9a399b587d7f6daa231 gcc14.patch
"
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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment