aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/rpc/rpc_frontend.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-10-04 16:29:46 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-10-04 16:29:46 +0200
commitc0b14cfea7c5650ddbc28d69de4749f845954dc7 (patch)
treebd18cf674addfbd0f9fad9b3993ce5bdd9a63431 /frontends/rpc/rpc_frontend.cc
parent2ed2e9c3e8f2d9d6882588857c8556a6e2af57ea (diff)
downloadyosys-c0b14cfea7c5650ddbc28d69de4749f845954dc7.tar.gz
yosys-c0b14cfea7c5650ddbc28d69de4749f845954dc7.tar.bz2
yosys-c0b14cfea7c5650ddbc28d69de4749f845954dc7.zip
Fixes for MSVC build
Diffstat (limited to 'frontends/rpc/rpc_frontend.cc')
-rw-r--r--frontends/rpc/rpc_frontend.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/frontends/rpc/rpc_frontend.cc b/frontends/rpc/rpc_frontend.cc
index 83e1353b0..add17c243 100644
--- a/frontends/rpc/rpc_frontend.cc
+++ b/frontends/rpc/rpc_frontend.cc
@@ -28,14 +28,13 @@
#include <sys/wait.h>
#include <sys/socket.h>
#include <sys/un.h>
+extern char **environ;
#endif
#include "libs/json11/json11.hpp"
#include "libs/sha1/sha1.h"
#include "kernel/yosys.h"
-extern char **environ;
-
YOSYS_NAMESPACE_BEGIN
#if defined(_WIN32)
@@ -238,6 +237,11 @@ struct RpcModule : RTLIL::Module {
#if defined(_WIN32)
+#if defined(_MSC_VER)
+#include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+#endif
+
struct HandleRpcServer : RpcServer {
HANDLE hsend, hrecv;