]> Savannah Git Hosting - gnulib.git/commitdiff
utimens: Fix test failure on macOS 10.13.
authorBruno Haible <bruno@clisp.org>
Sat, 2 Jan 2021 18:21:35 +0000 (19:21 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 2 Jan 2021 18:21:35 +0000 (19:21 +0100)
* lib/utimens.c: Include <string.h>.

ChangeLog
lib/utimens.c

index 5087bf4e62c2d2c19366c7ea888c176efb12ef37..fb6a8c2d9d68f957b9ac4a928ef1d712114d34af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2021-01-02  Bruno Haible  <bruno@clisp.org>
 
+       utimens: Fix test failure on macOS 10.13.
+       * lib/utimens.c: Include <string.h>.
+
        utimens: Fix test failure on macOS 10.13.
        * lib/utimens.c (fdutimens): Before calling utimensat, recognize a
        filename ending in a slash that does not point to a directory.
index 9f9c30af2fdea7ddc399b670ddb9d8aacfcbc03b..677e833f62bae8724c10ac138d7047bda7bded9f 100644 (file)
@@ -27,6 +27,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <stdbool.h>
+#include <string.h>
 #include <sys/stat.h>
 #include <sys/time.h>
 #include <unistd.h>