]> 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>
Wed, 31 Aug 2022 23:05:44 +0000 (01:05 +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 d52b5d0be68ba036d3a5b2c4355b9e5fa2c3fdab..d33da0606d1bd4413831d84651d20a351a9cbf28 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-13  Paul Eggert  <eggert@cs.ucla.edu>
 
        dfa: fix bug with ‘.’ and UTF-8 Hangul Syllables
index ec519cf38d38eeff3e77c2950b036359466f9ec7..afce2dbca078fc5ec1b3bbba7160c352c5daefcd 100644 (file)
@@ -4,6 +4,7 @@ tests/signature.h
 tests/macros.h
 
 Depends-on:
+fcntl-h
 symlink
 
 configure.ac:
index c13e91ab7c8daa5f0db365f280d5344d0e338ee3..7e6fbccbd07b6481ecd4f80afe30b6f21adaeeb5 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>