summaryrefslogtreecommitdiff
path: root/src/ghdlserver/ghdlserver.h
diff options
context:
space:
mode:
authorBladen Martin2020-06-08 21:53:17 +0530
committerGitHub2020-06-08 21:53:17 +0530
commiteb1f6005f327932652a84f01e298395ced7a3687 (patch)
treee87a552cb47ff60fcc48d1ac45f2ffd550829af0 /src/ghdlserver/ghdlserver.h
parent2f5db6223551cce11d6712c02639d1f64c0f9635 (diff)
downloadnghdl-eb1f6005f327932652a84f01e298395ced7a3687.tar.gz
nghdl-eb1f6005f327932652a84f01e298395ced7a3687.tar.bz2
nghdl-eb1f6005f327932652a84f01e298395ced7a3687.zip
Code has been made OS independent
Diffstat (limited to 'src/ghdlserver/ghdlserver.h')
-rw-r--r--src/ghdlserver/ghdlserver.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/ghdlserver/ghdlserver.h b/src/ghdlserver/ghdlserver.h
index 9f23f0b..0011d00 100644
--- a/src/ghdlserver/ghdlserver.h
+++ b/src/ghdlserver/ghdlserver.h
@@ -1,13 +1,31 @@
/* 18.Mar.2017 - RM - Cleaned up.*/
+/* 20.June.2020 - BM - Added OS dependent includes*/
+#define _GNU_SOURCE
+#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
-#include <stdio.h>
+
#include <unistd.h>
#include <sys/types.h>
+#include<string.h>
+
+#ifdef __linux__
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
+#endif
+
+#ifdef _WIN32
+#include<ws2tcpip.h>
+#include<winsock2.h>
+#include<eventsys.h>
+#include<windows.h>
+#endif
+
+
+
+
// Should be enough..
#define MAX_BUF_SIZE 4096