]> Savannah Git Hosting - gnulib.git/commitdiff
filemode tests: Tweak.
authorBruno Haible <bruno@clisp.org>
Wed, 19 Jun 2024 07:42:42 +0000 (09:42 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 19 Jun 2024 07:43:07 +0000 (09:43 +0200)
* tests/test-filemode.c: Update comment.
* modules/filemode-tests (Depends-on): Add unistd.

ChangeLog
modules/filemode-tests
tests/test-filemode.c

index d7abbaadcec983e3b906fbcc0326bb2cb0603d33..81ad26e42b6845081e1cb8de561d71f2a9de8984 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-06-19  Bruno Haible  <bruno@clisp.org>
+
+       filemode tests: Tweak.
+       * tests/test-filemode.c: Update comment.
+       * modules/filemode-tests (Depends-on): Add unistd.
+
 2024-06-18  Collin Funk  <collin.funk1@gmail.com>
 
        filemode: Add tests.
index 983bc1e67226a8dc9204a942c979847de9beb231..985de902720861cc0bf60ca6a70fa2dfb84d69d7 100644 (file)
@@ -3,6 +3,7 @@ tests/test-filemode.c
 tests/macros.h
 
 Depends-on:
+unistd
 
 configure.ac:
 
index 56c2fdc0334b05fe413350776696bcbe6df9d41a..f20211d0837be197c92cef262057a462f85cff0b 100644 (file)
@@ -24,8 +24,8 @@
 #include <sys/stat.h>
 
 /* The strmode function is already defined on some systems in <string.h> or
-   <unistd.h>.  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
+   <unistd.h>.  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 <string.h>