Include <stdlib.h> always.
authorBruno Haible <bruno@clisp.org>
Sun, 17 Aug 2008 16:33:47 +0000 (18:33 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 17 Aug 2008 16:33:47 +0000 (18:33 +0200)
ChangeLog
lib/glthread/cond.h
lib/glthread/lock.h
lib/glthread/tls.h

index 0f1b7b3..af705e8 100644 (file)
--- 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'.
index e8ed12c..2fb7df5 100644 (file)
@@ -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 @@ typedef pthread_cond_t gl_cond_t;
 /* Use the GNU Pth threads library.  */
 
 # include <pth.h>
-# include <stdlib.h>
 
 # ifdef __cplusplus
 extern "C" {
@@ -206,7 +205,6 @@ extern int glthread_cond_timedwait_multithreaded (gl_cond_t *cond, gl_lock_t *lo
 
 # include <thread.h>
 # include <synch.h>
-# include <stdlib.h>
 
 # ifdef __cplusplus
 extern "C" {
index 65b1b83..fd74941 100644 (file)
@@ -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 @@ extern int glthread_once_singlethreaded (pthread_once_t *once_control);
 /* Use the GNU Pth threads library.  */
 
 # include <pth.h>
-# include <stdlib.h>
 
 # ifdef __cplusplus
 extern "C" {
@@ -492,7 +491,6 @@ extern int glthread_once_singlethreaded (pth_once_t *once_control);
 
 # include <thread.h>
 # include <synch.h>
-# include <stdlib.h>
 
 # ifdef __cplusplus
 extern "C" {
index 9a03336..42f03ac 100644 (file)
@@ -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 @@ typedef union
 /* Use the GNU Pth threads library.  */
 
 # include <pth.h>
-# include <stdlib.h>
 
 # if USE_PTH_THREADS_WEAK
 
@@ -174,7 +173,6 @@ typedef union
 /* Use the old Solaris threads library.  */
 
 # include <thread.h>
-# include <stdlib.h>
 
 # if USE_SOLARIS_THREADS_WEAK