summaryrefslogtreecommitdiff
path: root/lib/utimensat.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-06-30 15:52:09 +0200
committerBruno Haible <bruno@clisp.org>2019-06-30 15:52:09 +0200
commit3712d6cd285b2bd42592b2d7bd5bf4645f6d443c (patch)
tree6f5671dc1659df5c0f2840445479115e4dcfa4e4 /lib/utimensat.c
parent8c4ec56ee018557e4a9f0d6aa047ee0590033b6e (diff)
downloadgnulib-3712d6cd285b2bd42592b2d7bd5bf4645f6d443c.tar.gz
Include <stdlib.h> when needed.
* lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c. * lib/faccessat.c: Likewise. * lib/fchmodat.c: Likewise. * lib/fchownat.c: Likewise. * lib/fstatat.c: Likewise. * lib/mkfifoat.c: Likewise. * lib/mknodat.c: Likewise. * lib/readlinkat.c: Likewise. * lib/symlinkat.c: Likewise. * lib/utimensat.c: Likewise. * lib/mkdirat.c: Likewise. Include also the specification header.
Diffstat (limited to 'lib/utimensat.c')
-rw-r--r--lib/utimensat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/utimensat.c b/lib/utimensat.c
index e9ea626e04..ebd339d908 100644
--- a/lib/utimensat.c
+++ b/lib/utimensat.c
@@ -18,10 +18,12 @@
#include <config.h>
+/* Specification. */
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
+#include <stdlib.h>
#include "stat-time.h"
#include "timespec.h"