aboutsummaryrefslogtreecommitdiffstats
path: root/frontends
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-10-08 13:03:06 -0700
committerEddie Hung <eddie@fpgeh.com>2019-10-08 13:03:06 -0700
commit304e5f9ea45b8a4e2a28aba7f2820d1862377fef (patch)
treebe1d59d00acdcab765a2f2d43117a640d79a6d03 /frontends
parent4f0818275fe44c451be59235616061be8ff5e382 (diff)
parent3fb604c75d3e8ee45d35fac8b787cb95a8adcf84 (diff)
downloadyosys-304e5f9ea45b8a4e2a28aba7f2820d1862377fef.tar.gz
yosys-304e5f9ea45b8a4e2a28aba7f2820d1862377fef.tar.bz2
yosys-304e5f9ea45b8a4e2a28aba7f2820d1862377fef.zip
Merge remote-tracking branch 'origin/master' into xaig_dff
Diffstat (limited to 'frontends')
-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;