+2008-08-17 Bruno Haible <bruno@clisp.org>
+
+ * lock.h: Include <stdlib.h> always.
+
2008-08-17 Bruno Haible <bruno@clisp.org>
* threadlib.c: New file, extracted from lock.c.
#define _LOCK_H
#include <errno.h>
+#include <stdlib.h>
/* ========================================================================= */
/* Use the POSIX threads library. */
# include <pthread.h>
-# include <stdlib.h>
# ifdef __cplusplus
extern "C" {
/* Use the GNU Pth threads library. */
# include <pth.h>
-# include <stdlib.h>
# ifdef __cplusplus
extern "C" {
# include <thread.h>
# include <synch.h>
-# include <stdlib.h>
# ifdef __cplusplus
extern "C" {