From 016968ada1ed749abffbd5d75dd3c02766312956 Mon Sep 17 00:00:00 2001
From: Sergey Lyubka <valenok@gmail.com>
Date: Fri, 17 Oct 2014 20:29:39 +0100
Subject: [PATCH] Removed net_skeleton dependency from examples/proxy_server

---
 examples/proxy_server/Makefile       |  2 +-
 examples/proxy_server/proxy_server.c | 15 ++++++++++++++-
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/examples/proxy_server/Makefile b/examples/proxy_server/Makefile
index 0e1871df1..214b8b686 100644
--- a/examples/proxy_server/Makefile
+++ b/examples/proxy_server/Makefile
@@ -2,7 +2,7 @@
 # All rights reserved
 
 PROG = proxy_server
-FLAGS = -I../.. -I../../../net_skeleton -DNS_ENABLE_SSL
+FLAGS = -I../..  -DNS_ENABLE_SSL
 CFLAGS = -W -Wall -g -O0 -pthread  -lssl $(FLAGS) $(CFLAGS_EXTRA)
 SOURCES = $(PROG).c ../../mongoose.c
 
diff --git a/examples/proxy_server/proxy_server.c b/examples/proxy_server/proxy_server.c
index b70926a81..dcf98aced 100644
--- a/examples/proxy_server/proxy_server.c
+++ b/examples/proxy_server/proxy_server.c
@@ -11,7 +11,20 @@
 //  Configure your browser to use localhost:2014 as a proxy for all protocols
 //  Then, navigate to https://cesanta.com
 
-#include "net_skeleton.h"
+#include <sys/stat.h>
+#include <signal.h>
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <time.h>
+
+#ifdef _WIN32
+#define sleep(x) Sleep((x) * 1000)
+#else
+#include <unistd.h>
+#endif
+
 #include "mongoose.h"
 
 static int s_received_signal = 0;
-- 
GitLab