1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-05-13 15:13:36 +00:00

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.
This commit is contained in:
Bruno Haible
2019-06-30 15:52:09 +02:00
parent 8c4ec56ee0
commit 3712d6cd28
12 changed files with 44 additions and 1 deletions

View File

@@ -1,3 +1,18 @@
2019-06-30 Bruno Haible <bruno@clisp.org>
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.
2019-06-30 Bruno Haible <bruno@clisp.org>
inet_ntop, inet_pton: Avoid conflict with native Windows functions.

View File

@@ -25,6 +25,8 @@
/* Specification. */
#include "areadlink.h"
#include <stdlib.h>
#include "careadlinkat.h"
#if HAVE_READLINKAT

View File

@@ -22,9 +22,12 @@
#define _GL_INCLUDING_UNISTD_H
#include <config.h>
/* Specification. */
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#undef _GL_INCLUDING_UNISTD_H

View File

@@ -18,9 +18,11 @@
#include <config.h>
/* Specification. */
#include <sys/stat.h>
#include <errno.h>
#include <stdlib.h>
#ifndef HAVE_LCHMOD
/* Use a different name, to avoid conflicting with any

View File

@@ -23,9 +23,11 @@
#include <config.h>
/* Specification. */
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include "openat.h"

View File

@@ -49,6 +49,7 @@ orig_fstatat (int fd, char const *filename, struct stat *buf, int flags)
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#if HAVE_FSTATAT && HAVE_WORKING_FSTATAT_ZERO_FLAG

View File

@@ -18,6 +18,10 @@
#include <config.h>
/* Specification. */
#include <sys/stat.h>
#include <stdlib.h>
#include <unistd.h>
/* Solaris 10 has no function like this.

View File

@@ -18,8 +18,11 @@
#include <config.h>
/* Specification. */
#include <sys/stat.h>
#include <stdlib.h>
#if !HAVE_MKFIFO
# include <errno.h>

View File

@@ -18,8 +18,11 @@
#include <config.h>
/* Specification. */
#include <sys/stat.h>
#include <stdlib.h>
#if !HAVE_MKNOD
# include <errno.h>

View File

@@ -18,8 +18,11 @@
#include <config.h>
#include <errno.h>
/* Specification. */
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>

View File

@@ -18,8 +18,11 @@
#include <config.h>
/* Specification. */
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#if HAVE_SYMLINKAT
# undef symlinkat

View File

@@ -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"