]> Savannah Git Hosting - gnulib.git/commitdiff
utime: Fix compilation error on macOS and Solaris 9 (regr. 2020-12-24).
authorBruno Haible <bruno@clisp.org>
Thu, 31 Dec 2020 16:16:57 +0000 (17:16 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 31 Dec 2020 16:16:57 +0000 (17:16 +0100)
Reported by Tom G. Christensen <tgc@jupiterrise.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00295.html>.

* lib/utime.c: Include <errno.h>.

ChangeLog
lib/utime.c

index fee18abccb835e5ac69786b5c1c27603693c0efe..179119d76f0e7711bc29a613a5e84455d61a07a1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-12-31  Bruno Haible  <bruno@clisp.org>
+
+       utime: Fix compilation error on macOS and Solaris 9 (regr. 2020-12-24).
+       Reported by Tom G. Christensen <tgc@jupiterrise.com> in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00295.html>.
+       * lib/utime.c: Include <errno.h>.
+
 2020-12-30  Karl Berry  <karl@freefriends.org>
 
        config: srclistvars doc.
index bf7d7c534a0c3e3da700e908586a5faf1733487e..3372179500688eef13132dbcef165d610831f757 100644 (file)
@@ -261,6 +261,7 @@ utime (const char *name, const struct utimbuf *ts)
 
 #else
 
+# include <errno.h>
 # include <sys/stat.h>
 # include "filename.h"