bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lock module improvement


From: Bruno Haible
Subject: Re: Lock module improvement
Date: Sun, 17 Aug 2008 18:35:30 +0200
User-agent: KMail/1.5.4

Another addendum: Since the macros now use abort() on all platforms, <stdlib.h>
must be included always.

2008-08-17  Bruno Haible  <address@hidden>

        * lib/glthread/lock.h: Include <stdlib.h> always.
        * lib/glthread/tls.h: Likewise.
        * lib/glthread/cond.h: Likewise.

--- lib/glthread/lock.h.orig    2008-08-17 18:32:23.000000000 +0200
+++ lib/glthread/lock.h 2008-08-17 18:29:53.000000000 +0200
@@ -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" {
--- lib/glthread/tls.h.orig     2008-08-17 18:32:23.000000000 +0200
+++ lib/glthread/tls.h  2008-08-17 18:30:55.000000000 +0200
@@ -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
 
--- lib/glthread/cond.h.orig    2008-08-17 18:32:22.000000000 +0200
+++ lib/glthread/cond.h 2008-08-17 18:31:37.000000000 +0200
@@ -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" {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]