test-file-cache.c needs #ifdef HAVE_RLIMIT_AS
test-file-cache.c:259:24: error: use of undeclared identifier 'RLIMIT_AS' test_assert(getrlimit(RLIMIT_AS, &rl_cur) == 0); ^ test-file-cache.c:267:24: error: use of undeclared identifier 'RLIMIT_AS' test_assert(setrlimit(RLIMIT_AS, &rl_new) == 0); ^ test-file-cache.c:270:24: error: use of undeclared identifier 'RLIMIT_AS' test_assert(setrlimit(RLIMIT_AS, &rl_cur) == 0); ^ test-file-cache.c:276:24: error: use of undeclared identifier 'RLIMIT_AS' test_assert(setrlimit(RLIMIT_AS, &rl_new) == 0); ^ test-file-cache.c:279:24: error: use of undeclared identifier 'RLIMIT_AS' test_assert(setrlimit(RLIMIT_AS, &rl_cur) == 0); ^
On 06/01/2021 21:34 Rupert Gallagher ruga@protonmail.com wrote:
test-file-cache.c:259:24: error: use of undeclared identifier 'RLIMIT_AS' test_assert(getrlimit(RLIMIT_AS, &rl_cur) == 0); ^ test-file-cache.c:267:24: error: use of undeclared identifier 'RLIMIT_AS' test_assert(setrlimit(RLIMIT_AS, &rl_new) == 0); ^ test-file-cache.c:270:24: error: use of undeclared identifier 'RLIMIT_AS' test_assert(setrlimit(RLIMIT_AS, &rl_cur) == 0); ^ test-file-cache.c:276:24: error: use of undeclared identifier 'RLIMIT_AS' test_assert(setrlimit(RLIMIT_AS, &rl_new) == 0); ^ test-file-cache.c:279:24: error: use of undeclared identifier 'RLIMIT_AS' test_assert(setrlimit(RLIMIT_AS, &rl_cur) == 0); ^
Which distro/OS is this?
Aki
OpenBSD
-------- Original Message -------- On Jan 6, 2021, 21:37, Aki Tuomi < aki.tuomi@open-xchange.com> wrote:
Which distro/OS is this? Aki
Can you try adding this to the file?
#define RLIMIT_AS RLIMIT_DATA
Aki
On 06/01/2021 22:47 Rupert Gallagher ruga@protonmail.com wrote:
OpenBSD
-------- Original Message -------- On Jan 6, 2021, 21:37, Aki Tuomi < aki.tuomi@open-xchange.com> wrote:
Which distro/OS is this? Aki
It compiles.
--- ./src/lib/test-file-cache.c.orig Wed Jan 6 19:11:47 2021
+++ ./src/lib/test-file-cache.c Thu Jan 7 11:38:03 2021
@@ -254,6 +254,11 @@
test_assert(size == 0);
test_assert(map == NULL);
+ /* OpenBSD does not support RLIMIT_AS */
+ #ifndef HAVE_RLIMIT_AS
+ #define RLIMIT_AS RLIMIT_DATA
+ #endif
+
/* temporarily set a small memory limit to make mmap attempt fail */
struct rlimit rl_cur;
test_assert(getrlimit(RLIMIT_AS, &rl_cur) == 0);
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, January 7, 2021 6:45 AM, Aki Tuomi
Can you try adding this to the file?
#define RLIMIT_AS RLIMIT_DATA
Aki
On 06/01/2021 22:47 Rupert Gallagher ruga@protonmail.com wrote: OpenBSD -------- Original Message -------- On Jan 6, 2021, 21:37, Aki Tuomi < aki.tuomi@open-xchange.com> wrote: Which distro/OS is this? Aki
I haven't seen anything about this commited upstream yet.
On 1/7/2021 1:45 AM, Aki Tuomi wrote:
Can you try adding this to the file?
#define RLIMIT_AS RLIMIT_DATA
Aki
On 06/01/2021 22:47 Rupert Gallagher ruga@protonmail.com wrote:
OpenBSD
-------- Original Message -------- On Jan 6, 2021, 21:37, Aki Tuomi < aki.tuomi@open-xchange.com> wrote:
Which distro/OS is this? Aki
It's not decided yet.
Aki
On 16/01/2021 20:16 Brad Smith brad@comstyle.com wrote:
I haven't seen anything about this commited upstream yet.
On 1/7/2021 1:45 AM, Aki Tuomi wrote:
Can you try adding this to the file?
#define RLIMIT_AS RLIMIT_DATA
Aki
On 06/01/2021 22:47 Rupert Gallagher ruga@protonmail.com wrote:
OpenBSD
-------- Original Message -------- On Jan 6, 2021, 21:37, Aki Tuomi < aki.tuomi@open-xchange.com> wrote:
Which distro/OS is this? Aki
Ok. Thanks. Just wanted to make sure it wasn't missed.
On 1/16/2021 1:32 PM, Aki Tuomi wrote:
It's not decided yet.
Aki
On 16/01/2021 20:16 Brad Smith brad@comstyle.com wrote:
I haven't seen anything about this commited upstream yet.
On 1/7/2021 1:45 AM, Aki Tuomi wrote:
Can you try adding this to the file?
#define RLIMIT_AS RLIMIT_DATA
Aki
On 06/01/2021 22:47 Rupert Gallagher ruga@protonmail.com wrote:
OpenBSD
-------- Original Message -------- On Jan 6, 2021, 21:37, Aki Tuomi < aki.tuomi@open-xchange.com> wrote:
Which distro/OS is this? Aki
On 1/16/2021 1:32 PM, Aki Tuomi wrote:
It's not decided yet.
Aki
Any update on this? This is one of very few local patches we keep around.
On 16/01/2021 20:16 Brad Smith brad@comstyle.com wrote:
I haven't seen anything about this commited upstream yet.
On 1/7/2021 1:45 AM, Aki Tuomi wrote:
Can you try adding this to the file?
#define RLIMIT_AS RLIMIT_DATA
Aki
On 06/01/2021 22:47 Rupert Gallagher ruga@protonmail.com wrote:
OpenBSD
-------- Original Message -------- On Jan 6, 2021, 21:37, Aki Tuomi < aki.tuomi@open-xchange.com> wrote:
Which distro/OS is this? Aki
On 8/13/2021 2:30 PM, Brad Smith wrote:
On 1/16/2021 1:32 PM, Aki Tuomi wrote:
It's not decided yet.
Aki
Any update on this? This is one of very few local patches we keep around.
Aki?
On 16/01/2021 20:16 Brad Smith brad@comstyle.com wrote:
I haven't seen anything about this commited upstream yet.
On 1/7/2021 1:45 AM, Aki Tuomi wrote:
Can you try adding this to the file?
#define RLIMIT_AS RLIMIT_DATA
Aki
On 06/01/2021 22:47 Rupert Gallagher ruga@protonmail.com wrote:
OpenBSD
-------- Original Message -------- On Jan 6, 2021, 21:37, Aki Tuomi < aki.tuomi@open-xchange.com> wrote:
Which distro/OS is this? Aki
participants (3)
-
Aki Tuomi
-
Brad Smith
-
Rupert Gallagher