]> Savannah Git Hosting - gnulib.git/commitdiff
tests: Avoid compilation errors on GNU/kFreeBSD.
authorBruno Haible <bruno@clisp.org>
Sat, 3 May 2025 10:27:53 +0000 (12:27 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 3 May 2025 10:27:53 +0000 (12:27 +0200)
* tests/test-sys_stat-h.c: Disable blksize_t assertion on GNU/kFreeBSD.
* tests/test-sys_types-h.c: Likewise.

ChangeLog
tests/test-sys_stat-h.c
tests/test-sys_types-h.c

index c33aae4a7a89578a82ffffa382d291d147de8e97..c0abffa5bcd22fd1a37f058817765b8fbd670bab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-05-03  Bruno Haible  <bruno@clisp.org>
+
+       tests: Avoid compilation errors on GNU/kFreeBSD.
+       * tests/test-sys_stat-h.c: Disable blksize_t assertion on GNU/kFreeBSD.
+       * tests/test-sys_types-h.c: Likewise.
+
 2025-05-02  Collin Funk  <collin.funk1@gmail.com>
 
        doc: Update documentation for 'open' errno discrepancies.
index 510aa21ea3d173b293df5b6ead8ba0e9a03e055c..9c8ceb7c7c920866f7f1511348d4cbac20baeea6 100644 (file)
@@ -339,7 +339,7 @@ struct timespec st;
 static_assert (TYPE_SIGNED (off_t));
 
 /* POSIX requires that blksize_t is a signed integer type.  */
-#if !defined __ANDROID__
+#if !(defined __ANDROID__ || (defined __FreeBSD_kernel__ && !defined __FreeBSD__))
 static_assert (TYPE_SIGNED (blksize_t));
 #endif
 
index ab54d5d3bbf6d4c1acc9f29b8a6a8d08842dc485..2a64fb21cf185b987fad3989f1720bfadfd8f86f 100644 (file)
@@ -46,7 +46,7 @@ static_assert (TYPE_SIGNED (off_t));
 static_assert (TYPE_SIGNED (off64_t));
 
 /* POSIX requires that blksize_t is a signed integer type.  */
-#if !defined __ANDROID__
+#if !(defined __ANDROID__ || (defined __FreeBSD_kernel__ && !defined __FreeBSD__))
 static_assert (TYPE_SIGNED (blksize_t));
 #endif