Mercurial > hg > octave-nkf > gnulib-hg
changeset 10558:55ce47daabdf
Needs to depend on modules 'errno' and 'time'.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 01 Oct 2008 03:11:20 +0200 |
parents | 86b9d42ca4fe |
children | eef7a67bf51d |
files | lib/glthread/cond.h modules/cond |
diffstat | 2 files changed, 10 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/glthread/cond.h +++ b/lib/glthread/cond.h @@ -52,6 +52,7 @@ #include <errno.h> #include <stdbool.h> #include <stdlib.h> +#include <time.h> #include "glthread/lock.h" @@ -122,9 +123,9 @@ typedef pthread_cond_t gl_cond_t; # define gl_cond_define(STORAGECLASS, NAME) \ - STORAGECLASS pthread_cond_t NAME; + STORAGECLASS gl_cond_t NAME; # define gl_cond_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS pthread_cond_t NAME = gl_cond_initializer; + STORAGECLASS gl_cond_t NAME = gl_cond_initializer; # define gl_cond_initializer \ PTHREAD_COND_INITIALIZER # define glthread_cond_init(COND) \ @@ -181,9 +182,9 @@ typedef pth_cond_t gl_cond_t; # define gl_cond_define(STORAGECLASS, NAME) \ - STORAGECLASS pth_cond_t NAME; + STORAGECLASS gl_cond_t NAME; # define gl_cond_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS pth_cond_t NAME = gl_cond_initializer; + STORAGECLASS gl_cond_t NAME = gl_cond_initializer; # define gl_cond_initializer \ PTH_COND_INIT # define glthread_cond_init(COND) \ @@ -239,11 +240,11 @@ /* -------------------------- gl_cond_t datatype -------------------------- */ -typedef pthread_cond_t gl_cond_t; +typedef cond_t gl_cond_t; # define gl_cond_define(STORAGECLASS, NAME) \ - STORAGECLASS cond_t NAME; + STORAGECLASS gl_cond_t NAME; # define gl_cond_define_initialized(STORAGECLASS, NAME) \ - STORAGECLASS cond_t NAME = gl_cond_initializer; + STORAGECLASS gl_cond_t NAME = gl_cond_initializer; # define gl_cond_initializer \ DEFAULTCV # define glthread_cond_init(COND) \