diff options
author | dscho <dscho> | 2003-02-08 14:26:39 +0000 |
---|---|---|
committer | dscho <dscho> | 2003-02-08 14:26:39 +0000 |
commit | 9f6a47087b28fc230e804da404798acb9641cb4e (patch) | |
tree | 2cd09d3004d7142637efc42f74b6722122f27c1d /examples/example.c | |
parent | 6c78073285536d214d877eae42bf534f79fdd8b2 (diff) | |
download | libtdevnc-9f6a47087b28fc230e804da404798acb9641cb4e.tar.gz libtdevnc-9f6a47087b28fc230e804da404798acb9641cb4e.zip |
autoconf'ed everything
Diffstat (limited to 'examples/example.c')
-rw-r--r-- | examples/example.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/example.c b/examples/example.c index 62295c3..e82ccea 100644 --- a/examples/example.c +++ b/examples/example.c @@ -297,7 +297,7 @@ int main(int argc,char** argv) /* initialize the server */ rfbInitServer(rfbScreen); -#define USE_OWN_LOOP +#ifndef BACKGROUND_LOOP_TEST #ifdef USE_OWN_LOOP { int i; @@ -307,12 +307,12 @@ int main(int argc,char** argv) } } #else - -#ifndef BACKGROUND_LOOP_TEST /* this is the blocking event loop, i.e. it never returns */ /* 40000 are the microseconds to wait on select(), i.e. 0.04 seconds */ rfbRunEventLoop(rfbScreen,40000,FALSE); -#elif !defined(HAVE_PTHREADS) +#endif /* OWN LOOP */ +#else +#if !defined(HAVE_LIBPTHREAD) #error "I need pthreads for that." #endif @@ -320,7 +320,7 @@ int main(int argc,char** argv) rfbRunEventLoop(rfbScreen,-1,TRUE); /* now we could do some cool things like rendering in idle time */ while(1) sleep(5); /* render(); */ -#endif +#endif /* BACKGROUND_LOOP */ rfbFreeCursor(rfbScreen->cursor); free(rfbScreen->frameBuffer); |