test server only mention pollfd if EXTERNAL_POLL
authorAndy Green <andy.green@linaro.org>
Thu, 5 Mar 2015 09:06:16 +0000 (17:06 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 5 Mar 2015 09:06:16 +0000 (17:06 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
test-server/test-server.c

index 567f545..055c3f6 100644 (file)
 static int close_testing;
 int max_poll_elements;
 
+#ifdef EXTERNAL_POLL
 struct pollfd *pollfds;
 int *fd_lookup;
 int count_pollfds;
+#endif
 static volatile int force_exit = 0;
 static struct libwebsocket_context *context;