--- BDB/xthread.h 2011/07/29 08:35:35 1.11 +++ BDB/xthread.h 2012/10/11 05:02:54 1.12 @@ -47,11 +47,11 @@ #define X_COND_TIMEDWAIT(cond,mutex,to) pthread_cond_timedwait (&(cond), &(mutex), &(to)) typedef pthread_t xthread_t; -#define X_THREAD_PROC(name) void *name (void *thr_arg) +#define X_THREAD_PROC(name) static void *name (void *thr_arg) #define X_THREAD_ATFORK(a,b,c) static int -thread_create (xthread_t *tid, void *(*proc)(void *), void *arg) +xthread_create (xthread_t *tid, void *(*proc)(void *), void *arg) { int retval; pthread_attr_t attr; @@ -132,7 +132,7 @@ #endif static int -thread_create (xthread_t *tid, void *(*proc)(void *), void *arg) +xthread_create (xthread_t *tid, void *(*proc)(void *), void *arg) { int retval; sigset_t fullsigset, oldsigset;