configure without client

This leverages the refactor patches to introduce the ability to
disable building any client side code in the library or the client
side test apps.

This will be a considerable size saving for embedded server-only
case.

Signed-off-by: Andy Green <andy.green@linaro.org>
diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c
index 63d286a..ff152f1 100644
--- a/lib/libwebsockets.c
+++ b/lib/libwebsockets.c
@@ -773,8 +773,9 @@
 	int more = 1;
 	struct lws_tokens eff_buf;
 	int opt = 1;
+#ifndef LWS_NO_CLIENT
 	extern int lws_client_socket_service(struct libwebsocket_context *context, struct libwebsocket *wsi, struct pollfd *pollfd);
-
+#endif
 	/*
 	 * you can call us with pollfd = NULL to just allow the once-per-second
 	 * global timeout checks; if less than a second since the last check
@@ -1273,7 +1274,11 @@
 		break;
 
 	default:
+#ifdef LWS_NO_CLIENT
+		break;
+#else
 		return  lws_client_socket_service(context, wsi, pollfd);
+#endif
 	}
 
 	return 0;