changeset 10326:9af9e0a74e40

Include <stdlib.h> always.
author Bruno Haible <bruno@clisp.org>
date Sun, 17 Aug 2008 18:33:47 +0200
parents 5dc56d24c390
children a9d3f42042b7
files ChangeLog lib/glthread/cond.h lib/glthread/lock.h lib/glthread/tls.h
diffstat 4 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-08-17  Bruno Haible  <bruno@clisp.org>
+
+	* lib/glthread/lock.h: Include <stdlib.h> always.
+	* lib/glthread/tls.h: Likewise.
+	* lib/glthread/cond.h: Likewise.
+
 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
 
 	New module 'cond'.
--- a/lib/glthread/cond.h
+++ b/lib/glthread/cond.h
@@ -51,6 +51,7 @@
 
 #include <errno.h>
 #include <stdbool.h>
+#include <stdlib.h>
 
 #include "glthread/lock.h"
 
@@ -61,7 +62,6 @@
 /* Use the POSIX threads library.  */
 
 # include <pthread.h>
-# include <stdlib.h>
 
 # ifdef __cplusplus
 extern "C" {
@@ -149,7 +149,6 @@
 /* Use the GNU Pth threads library.  */
 
 # include <pth.h>
-# include <stdlib.h>
 
 # ifdef __cplusplus
 extern "C" {
@@ -206,7 +205,6 @@
 
 # include <thread.h>
 # include <synch.h>
-# include <stdlib.h>
 
 # ifdef __cplusplus
 extern "C" {
--- a/lib/glthread/lock.h
+++ b/lib/glthread/lock.h
@@ -80,6 +80,7 @@
 #define _LOCK_H
 
 #include <errno.h>
+#include <stdlib.h>
 
 /* ========================================================================= */
 
@@ -88,7 +89,6 @@
 /* Use the POSIX threads library.  */
 
 # include <pthread.h>
-# include <stdlib.h>
 
 # ifdef __cplusplus
 extern "C" {
@@ -382,7 +382,6 @@
 /* Use the GNU Pth threads library.  */
 
 # include <pth.h>
-# include <stdlib.h>
 
 # ifdef __cplusplus
 extern "C" {
@@ -492,7 +491,6 @@
 
 # include <thread.h>
 # include <synch.h>
-# include <stdlib.h>
 
 # ifdef __cplusplus
 extern "C" {
--- a/lib/glthread/tls.h
+++ b/lib/glthread/tls.h
@@ -44,6 +44,7 @@
 #define _TLS_H
 
 #include <errno.h>
+#include <stdlib.h>
 
 /* ========================================================================= */
 
@@ -52,7 +53,6 @@
 /* Use the POSIX threads library.  */
 
 # include <pthread.h>
-# include <stdlib.h>
 
 # if PTHREAD_IN_USE_DETECTION_HARD
 
@@ -120,7 +120,6 @@
 /* Use the GNU Pth threads library.  */
 
 # include <pth.h>
-# include <stdlib.h>
 
 # if USE_PTH_THREADS_WEAK
 
@@ -174,7 +173,6 @@
 /* Use the old Solaris threads library.  */
 
 # include <thread.h>
-# include <stdlib.h>
 
 # if USE_SOLARIS_THREADS_WEAK