]> Savannah Git Hosting - gnulib.git/commitdiff
Include <stdlib.h> when needed.
authorBruno Haible <bruno@clisp.org>
Sun, 30 Jun 2019 14:11:08 +0000 (16:11 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 30 Jun 2019 14:11:08 +0000 (16:11 +0200)
* lib/cnd.c: Include <stdlib.h>, needed for abort().
* lib/fcntl.c: Likewise.
* lib/mbscasestr.c: Likewise.
* lib/mbssep.c: Likewise.
* lib/mbsstr.c: Likewise.
* lib/openat.c: Include <stdlib.h>, needed for free().
* lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
abort().

ChangeLog
lib/cnd.c
lib/fcntl.c
lib/mbscasestr.c
lib/mbssep.c
lib/mbsstr.c
lib/openat.c
lib/windows-tls.c

index f554b5d741e98e9148f3c0dd7174a69d27e4ca8e..a183dd42d4c8f5cdb21d421d782026aa74a2d622 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2019-06-30  Bruno Haible  <bruno@clisp.org>
+
+       Include <stdlib.h> when needed.
+       * lib/cnd.c: Include <stdlib.h>, needed for abort().
+       * lib/fcntl.c: Likewise.
+       * lib/mbscasestr.c: Likewise.
+       * lib/mbssep.c: Likewise.
+       * lib/mbsstr.c: Likewise.
+       * lib/openat.c: Include <stdlib.h>, needed for free().
+       * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
+       abort().
+
 2019-06-30  Bruno Haible  <bruno@clisp.org>
 
        Include <stdlib.h> when needed.
index 48c48542e7b13f993bb262abe36a2d1e6eb1a4e6..0dfee4cc50b77af55f9a6896b9d27953ac99e3c0 100644 (file)
--- a/lib/cnd.c
+++ b/lib/cnd.c
@@ -22,6 +22,7 @@
 #include <threads.h>
 
 #include <errno.h>
+#include <stdlib.h>
 
 #if defined _WIN32 && ! defined __CYGWIN__
 /* Use Windows threads.  */
index 51f62ef78a834411525515bcceb1aea1ff3eee41..a3ffaa6e47be4d7177200c968d11fb0964ffc784 100644 (file)
@@ -25,6 +25,7 @@
 #include <errno.h>
 #include <limits.h>
 #include <stdarg.h>
+#include <stdlib.h>
 #include <unistd.h>
 
 #ifdef __KLIBC__
index 59be44450c49a29924b050ec71fe64c396db3fb1..7c74ed7f7922e0346f1db9ad0315fb0078835f3b 100644 (file)
@@ -23,6 +23,7 @@
 #include <ctype.h>
 #include <stdbool.h>
 #include <stddef.h>  /* for NULL, in case a nonstandard string.h lacks it */
+#include <stdlib.h>
 
 #include "malloca.h"
 #include "mbuiter.h"
index ca3f20e04fef4f72d43d5bcd20926d0cf769b307..f301d660b9690379307b62e0df06782a5f71952f 100644 (file)
@@ -20,6 +20,8 @@
 /* Specification.  */
 #include <string.h>
 
+#include <stdlib.h>
+
 #include "mbuiter.h"
 
 char *
index 46bfdc6306c61bacd6c10bca7fb704a7087eba60..4aaebfe82cf997fbf42d6d8ddab47d7a65d75520 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <stdbool.h>
 #include <stddef.h>  /* for NULL, in case a nonstandard string.h lacks it */
+#include <stdlib.h>
 
 #include "malloca.h"
 #include "mbuiter.h"
index 4ab4a318d282f17173ea5d20348affb113a5ec99..3431147bee5efea204798d5f852c8bd6ad8bfefa 100644 (file)
@@ -46,6 +46,7 @@ orig_openat (int fd, char const *filename, int flags, mode_t mode)
 #include <stdarg.h>
 #include <stdbool.h>
 #include <stddef.h>
+#include <stdlib.h>
 #include <string.h>
 #include <sys/stat.h>
 #include <errno.h>
index 02dfdfb7d6ab0a86ede37b09faa5490a2b590308..2e1b7021bc76993487e6cb73a37947b188bca553 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <errno.h>
 #include <limits.h>
+#include <stdlib.h>
 
 #include "windows-once.h"