]> Savannah Git Hosting - gnulib.git/commitdiff
glob tests: Fix a warning (regression from 2022-03-23).
authorBruno Haible <bruno@clisp.org>
Sat, 14 May 2022 20:34:12 +0000 (22:34 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 14 May 2022 20:34:12 +0000 (22:34 +0200)
* tests/test-glob.c: Include <fcntl.h>.
* modules/glob-tests (Depends-on): Add fcntl-h.

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

index 0bd1ad038853c540c1f497db4b8c3816e44c9dac..42f7e2cc5494b39f59877af2a5d2f54fdd293867 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-05-14  Bruno Haible  <bruno@clisp.org>
+
+       glob tests: Fix a warning (regression from 2022-03-23).
+       * tests/test-glob.c: Include <fcntl.h>.
+       * modules/glob-tests (Depends-on): Add fcntl-h.
+
 2022-05-14  Bruno Haible  <bruno@clisp.org>
 
        termcap: Fix link error when no suitable library is found.
index ec519cf38d38eeff3e77c2950b036359466f9ec7..afce2dbca078fc5ec1b3bbba7160c352c5daefcd 100644 (file)
@@ -4,6 +4,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+fcntl-h
 symlink
 
 configure.ac:
index 568acf14b76685465ac06cc7ed778bf4c6b83e86..61c7ca45833d89dbe20b9e1fa4d6d307558bd455 100644 (file)
@@ -26,6 +26,7 @@ SIGNATURE_CHECK (glob, int, (char const *, int, int (*) (char const *, int),
 SIGNATURE_CHECK (globfree, void, (glob_t *));
 
 #include <errno.h>
+#include <fcntl.h>
 #include <string.h>
 #include <unistd.h>