Skip to content

Commit 8d81207

Browse files
committed
hiawatha: Fix build on SunOS
1 parent 8844564 commit 8d81207

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

www/hiawatha/distinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ SHA1 (patch-CMakeLists.txt) = a96e51545ab31e5ceb4a520bb4757787088c8174
77
SHA1 (patch-config_hiawatha.conf.in) = 8a58402b0201ec6cd661f5d949e127edfe4b693a
88
SHA1 (patch-extra_letsencrypt_letsencrypt.conf.in) = 718d44e883f8206fd88480c5503d962198992347
99
SHA1 (patch-mbedtls_library_ssl_tls13_generic.c) = 292b21dfdb8b19309da8faa807fa200720b5e580
10-
SHA1 (patch-src_hiawatha.c) = 4302f7f959799fc79bda6eda63901fb5b0fc3993
10+
SHA1 (patch-src_hiawatha.c) = 61dcf73dfb5fcfbc0ab9d7d9407fca0f21aaf018
1111
SHA1 (patch-src_tls.c) = de1631f6ceff7a903964bcf5171e7ea24e933e71

www/hiawatha/patches/patch-src_hiawatha.c

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,19 @@
22

33
Solarish are missing RLIMIT_NPROC
44

5-
--- src/hiawatha.c.orig 2024-12-18 16:38:01.001436946 +0000
5+
--- src/hiawatha.c.orig 2024-06-14 09:52:12.000000000 +0000
66
+++ src/hiawatha.c
7-
@@ -791,10 +791,11 @@ int run_webserver(t_settings *settings)
7+
@@ -12,6 +12,9 @@
8+
#include "config.h"
9+
#include <sys/types.h>
10+
#include <sys/stat.h>
11+
+#ifdef __sun
12+
+#include <sys/loadavg.h>
13+
+#endif
14+
#include <stdio.h>
15+
#include <stdlib.h>
16+
#include <stdbool.h>
17+
@@ -791,10 +794,11 @@ int run_webserver(t_settings *settings) {
818
*/
919
if (config->set_rlimits) {
1020
resource_limit.rlim_max = resource_limit.rlim_cur = config->total_connections + 3;

0 commit comments

Comments
 (0)