summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authordscho <dscho>2006-03-01 21:35:53 +0000
committerdscho <dscho>2006-03-01 21:35:53 +0000
commitf38f67e4e9320a3e0b1472b9c4bae86fcedcbd89 (patch)
tree03e19ae8682ec679bf67292d70acf688fa28d713 /examples
parentb7a901d78f9a43b8a9b7ce7ed7ab1257998576a6 (diff)
downloadlibvncserver-f38f67e4e9320a3e0b1472b9c4bae86fcedcbd89.zip
libvncserver-f38f67e4e9320a3e0b1472b9c4bae86fcedcbd89.tar.gz
Fix blooptest example
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile.am5
-rw-r--r--examples/blooptest.c2
-rw-r--r--examples/example.c1
3 files changed, 3 insertions, 5 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
index a77fa15..644f017 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -20,8 +20,3 @@ noinst_PROGRAMS=example pnmshow regiontest pnmshow24 fontsel \
vncev storepasswd colourmaptest simple simple15 $(MAC) \
$(FILETRANSFER) backchannel $(BLOOPTEST)
-blooptest.o: example.c
- $(CC) $(AM_CFLAGS) $(CFLAGS) -c -o $@ $<
-
-
-
diff --git a/examples/blooptest.c b/examples/blooptest.c
new file mode 100644
index 0000000..f0e411c
--- /dev/null
+++ b/examples/blooptest.c
@@ -0,0 +1,2 @@
+#define BACKGROUND_LOOP_TEST
+#include "example.c"
diff --git a/examples/example.c b/examples/example.c
index 536497f..71548fa 100644
--- a/examples/example.c
+++ b/examples/example.c
@@ -324,6 +324,7 @@ int main(int argc,char** argv)
/* this is the non-blocking event loop; a background thread is started */
rfbRunEventLoop(rfbScreen,-1,TRUE);
+ fprintf(stderr, "Running background loop...\n");
/* now we could do some cool things like rendering in idle time */
while(1) sleep(5); /* render(); */
#endif /* BACKGROUND_LOOP */
OpenPOWER on IntegriCloud