>From fcd36afd142c6b0969016314982c02dc66985b1f Mon Sep 17 00:00:00 2001
From: Bruno Haible
Date: Sun, 30 Jun 2019 16:11:08 +0200
Subject: [PATCH 2/2] Include when needed.
* lib/cnd.c: Include , needed for abort().
* lib/fcntl.c: Likewise.
* lib/mbscasestr.c: Likewise.
* lib/mbssep.c: Likewise.
* lib/mbsstr.c: Likewise.
* lib/openat.c: Include , needed for free().
* lib/windows-tls.c: Include , needed for malloc(), free(),
abort().
---
ChangeLog | 12 ++++++++++++
lib/cnd.c | 1 +
lib/fcntl.c | 1 +
lib/mbscasestr.c | 1 +
lib/mbssep.c | 2 ++
lib/mbsstr.c | 1 +
lib/openat.c | 1 +
lib/windows-tls.c | 1 +
8 files changed, 20 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index f554b5d..a183dd4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,18 @@
2019-06-30 Bruno Haible
Include when needed.
+ * lib/cnd.c: Include , needed for abort().
+ * lib/fcntl.c: Likewise.
+ * lib/mbscasestr.c: Likewise.
+ * lib/mbssep.c: Likewise.
+ * lib/mbsstr.c: Likewise.
+ * lib/openat.c: Include , needed for free().
+ * lib/windows-tls.c: Include , needed for malloc(), free(),
+ abort().
+
+2019-06-30 Bruno Haible
+
+ Include when needed.
* lib/areadlinkat.c: Include , needed for free() in at-func.c.
* lib/faccessat.c: Likewise.
* lib/fchmodat.c: Likewise.
diff --git a/lib/cnd.c b/lib/cnd.c
index 48c4854..0dfee4c 100644
--- a/lib/cnd.c
+++ b/lib/cnd.c
@@ -22,6 +22,7 @@
#include
#include
+#include
#if defined _WIN32 && ! defined __CYGWIN__
/* Use Windows threads. */
diff --git a/lib/fcntl.c b/lib/fcntl.c
index 51f62ef..a3ffaa6 100644
--- a/lib/fcntl.c
+++ b/lib/fcntl.c
@@ -25,6 +25,7 @@
#include
#include
#include
+#include
#include
#ifdef __KLIBC__
diff --git a/lib/mbscasestr.c b/lib/mbscasestr.c
index 59be444..7c74ed7 100644
--- a/lib/mbscasestr.c
+++ b/lib/mbscasestr.c
@@ -23,6 +23,7 @@
#include
#include
#include /* for NULL, in case a nonstandard string.h lacks it */
+#include
#include "malloca.h"
#include "mbuiter.h"
diff --git a/lib/mbssep.c b/lib/mbssep.c
index ca3f20e..f301d66 100644
--- a/lib/mbssep.c
+++ b/lib/mbssep.c
@@ -20,6 +20,8 @@
/* Specification. */
#include
+#include
+
#include "mbuiter.h"
char *
diff --git a/lib/mbsstr.c b/lib/mbsstr.c
index 46bfdc6..4aaebfe 100644
--- a/lib/mbsstr.c
+++ b/lib/mbsstr.c
@@ -22,6 +22,7 @@
#include
#include /* for NULL, in case a nonstandard string.h lacks it */
+#include
#include "malloca.h"
#include "mbuiter.h"
diff --git a/lib/openat.c b/lib/openat.c
index 4ab4a31..3431147 100644
--- a/lib/openat.c
+++ b/lib/openat.c
@@ -46,6 +46,7 @@ orig_openat (int fd, char const *filename, int flags, mode_t mode)
#include
#include
#include
+#include
#include
#include
#include
diff --git a/lib/windows-tls.c b/lib/windows-tls.c
index 02dfdfb..2e1b702 100644
--- a/lib/windows-tls.c
+++ b/lib/windows-tls.c
@@ -23,6 +23,7 @@
#include
#include
+#include
#include "windows-once.h"
--
2.7.4