pkgsrc/www/siege/patches/patch-src_init.c
nils afc734263e Updated www/siege to version 4.0.4.
Pkgsrc changelog :
* Some files do not exist anymore, so they were removed from installation
* Fixed compilation issue about signals

Some of the upstream changes :
* an HTML parser : pages are now parsed for additional elements (images,
  js...) that are also requested ;
* improved memory management ;
* logging to a file is now disabled by default ;
* colored output can be disabled in the config file ;
* implement disable cache option.

Full changelog available here :
https://github.com/JoeDog/siege/blob/v4.0.4/ChangeLog
2019-08-18 20:32:59 +00:00

18 lines
462 B
C

$NetBSD: patch-src_init.c,v 1.1 2019/08/18 20:32:59 nils Exp $
Signals are defined in signal.h in *BSD
--- src/init.c.orig 2017-09-11 17:36:08.000000000 +0000
+++ src/init.c
@@ -39,7 +39,10 @@
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
-
+/* Signals are defined in signal.h in *BSD */
+#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+#include <signal.h>
+#endif
#define LINESZ 1024
int