From dd0f3ce38b7bf671490fe4735c8951550632a7d1 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 19 Jun 2024 09:42:42 +0200 Subject: [PATCH] filemode tests: Tweak. * tests/test-filemode.c: Update comment. * modules/filemode-tests (Depends-on): Add unistd. --- ChangeLog | 6 ++++++ modules/filemode-tests | 1 + tests/test-filemode.c | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d7abbaadce..81ad26e42b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2024-06-19 Bruno Haible + + filemode tests: Tweak. + * tests/test-filemode.c: Update comment. + * modules/filemode-tests (Depends-on): Add unistd. + 2024-06-18 Collin Funk filemode: Add tests. diff --git a/modules/filemode-tests b/modules/filemode-tests index 983bc1e672..985de90272 100644 --- a/modules/filemode-tests +++ b/modules/filemode-tests @@ -3,6 +3,7 @@ tests/test-filemode.c tests/macros.h Depends-on: +unistd configure.ac: diff --git a/tests/test-filemode.c b/tests/test-filemode.c index 56c2fdc033..f20211d083 100644 --- a/tests/test-filemode.c +++ b/tests/test-filemode.c @@ -24,8 +24,8 @@ #include /* The strmode function is already defined on some systems in or - . On FreeBSD versions 13 and lower the function takes an int - instead of a mode_t (uint16_t) as it's first argument. Include these + . On macOS, FreeBSD < 14.0, OpenBSD, the function takes an int + instead of a mode_t (uint16_t) as its first argument. Include these headers here to make sure our declaration doesn't conflict with system functions. */ #include -- 2.39.5