summaryrefslogtreecommitdiffstats
path: root/example.c
diff options
context:
space:
mode:
Diffstat (limited to 'example.c')
-rw-r--r--example.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/example.c b/example.c
index cc021e4..da01d7a 100644
--- a/example.c
+++ b/example.c
@@ -315,6 +315,8 @@ int main(int argc,char** argv)
/* this is the blocking event loop, i.e. it never returns */
/* 40000 are the microseconds, i.e. 0.04 seconds */
rfbRunEventLoop(rfbScreen,40000,FALSE);
+#elif !defined(HAVE_PTHREADS)
+#error "I need pthreads for that."
#endif
/* this is the non-blocking event loop; a background thread is started */