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:
15
ChangeLog
15
ChangeLog
@@ -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.
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
/* Specification. */
|
||||
#include "areadlink.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "careadlinkat.h"
|
||||
|
||||
#if HAVE_READLINKAT
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
/* Specification. */
|
||||
#include <unistd.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "openat.h"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -18,8 +18,11 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
/* Specification. */
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#if !HAVE_MKFIFO
|
||||
|
||||
# include <errno.h>
|
||||
|
||||
@@ -18,8 +18,11 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
/* Specification. */
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#if !HAVE_MKNOD
|
||||
|
||||
# include <errno.h>
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -18,8 +18,11 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
/* Specification. */
|
||||
#include <unistd.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#if HAVE_SYMLINKAT
|
||||
# undef symlinkat
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user