fix thread-only compilation

This commit is contained in:
Vítor Santos Costa 2013-11-04 21:41:49 +00:00
parent 1a8b038b5b
commit 6793a1f83b

View File

@ -30,6 +30,9 @@
#if HAVE_ERRNO_H #if HAVE_ERRNO_H
#include <errno.h> #include <errno.h>
#endif #endif
#if HAVE_SIGNAL_H
#include <signal.h>
#endif
#define PL_KERNEL 1 #define PL_KERNEL 1
@ -2479,6 +2482,8 @@ X_API int PL_thread_self(void)
#endif #endif
} }
#if THREADS
static int static int
alertThread(int tid) alertThread(int tid)
{ {
@ -2512,7 +2517,7 @@ PL_thread_raise(int tid, int sig)
return TRUE; return TRUE;
} }
#endif
X_API int PL_unify_thread_id(term_t t, int i) X_API int PL_unify_thread_id(term_t t, int i)
{ {