[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 10/36: test_client_put_stop: fixed test on Darwin
From: |
gnunet |
Subject: |
[libmicrohttpd] 10/36: test_client_put_stop: fixed test on Darwin |
Date: |
Thu, 01 Jun 2023 12:30:15 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 2bb7c9f2e6352e6e2345b8768b3b9f3b9d582bc9
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed May 17 11:15:02 2023 +0300
test_client_put_stop: fixed test on Darwin
---
src/microhttpd/test_client_put_stop.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/test_client_put_stop.c
b/src/microhttpd/test_client_put_stop.c
index b4167870..403a4d5c 100644
--- a/src/microhttpd/test_client_put_stop.c
+++ b/src/microhttpd/test_client_put_stop.c
@@ -310,8 +310,14 @@ test_global_init (void)
mib[1] = PF_INET;
mib[2] = IPPROTO_ICMP;
mib[3] = ICMPCTL_ICMPLIM;
- if ((0 != sysctl (mib, 4, &limit, &limit_size, NULL, 0)) ||
- (sizeof(limit) != limit_size) )
+ if (0 != sysctl (mib, 4, &limit, &limit_size, NULL, 0))
+ {
+ if (ENOENT == errno)
+ limit = 0; /* No such parameter (Darwin) */
+ else
+ externalErrorExitDesc ("Cannot get RST rate limit value");
+ }
+ else if (sizeof(limit) != limit_size)
externalErrorExitDesc ("Cannot get RST rate limit value");
if (limit > 0)
{
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (31ce530d -> 4ddb8015), gnunet, 2023/06/01
- [libmicrohttpd] 03/36: autoinit_funcs.h: fixed compiler warning, gnunet, 2023/06/01
- [libmicrohttpd] 01/36: bootstrap script: improved portability, gnunet, 2023/06/01
- [libmicrohttpd] 04/36: tests: adopted to new libcurl API, gnunet, 2023/06/01
- [libmicrohttpd] 02/36: Added more mutes for autoconf compiler warnings, gnunet, 2023/06/01
- [libmicrohttpd] 05/36: configure: fixed compiler warnings, gnunet, 2023/06/01
- [libmicrohttpd] 10/36: test_client_put_stop: fixed test on Darwin,
gnunet <=
- [libmicrohttpd] 08/36: test_quiesce: fixed possible uninitialised var, gnunet, 2023/06/01
- [libmicrohttpd] 09/36: test_postprocessor_md: fixed build in C89 mode, gnunet, 2023/06/01
- [libmicrohttpd] 12/36: test_client_put_stop: avoid stress-testing the OS, gnunet, 2023/06/01
- [libmicrohttpd] 24/36: websocket_threaded_example: fixed wrong commented-out code, gnunet, 2023/06/01
- [libmicrohttpd] 22/36: test_client_put_stop: muted compiler warnings, gnunet, 2023/06/01
- [libmicrohttpd] 14/36: Added specific headers inclusion and detection, gnunet, 2023/06/01
- [libmicrohttpd] 07/36: configure: renamed macro, gnunet, 2023/06/01
- [libmicrohttpd] 11/36: test_client_put_stop: fixed typo in comment, gnunet, 2023/06/01
- [libmicrohttpd] 17/36: examples/sessions.c: removed non-portable function and improved safety, gnunet, 2023/06/01
- [libmicrohttpd] 18/36: configure: fixed detection of __FUNCTION__ magic macro, gnunet, 2023/06/01