Merge pull request #1436 from YosysHQ/mmicko/msvc_fix

Fixes for MSVC build
This commit is contained in:
Miodrag Milanović 2019-10-05 07:48:30 +02:00 committed by GitHub
commit 7c074ef844
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -28,14 +28,13 @@
#include <sys/wait.h> #include <sys/wait.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/un.h> #include <sys/un.h>
extern char **environ;
#endif #endif
#include "libs/json11/json11.hpp" #include "libs/json11/json11.hpp"
#include "libs/sha1/sha1.h" #include "libs/sha1/sha1.h"
#include "kernel/yosys.h" #include "kernel/yosys.h"
extern char **environ;
YOSYS_NAMESPACE_BEGIN YOSYS_NAMESPACE_BEGIN
#if defined(_WIN32) #if defined(_WIN32)
@ -238,6 +237,11 @@ struct RpcModule : RTLIL::Module {
#if defined(_WIN32) #if defined(_WIN32)
#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif
struct HandleRpcServer : RpcServer { struct HandleRpcServer : RpcServer {
HANDLE hsend, hrecv; HANDLE hsend, hrecv;

View File

@ -20,6 +20,7 @@
#include "kernel/yosys.h" #include "kernel/yosys.h"
#include "kernel/sigtools.h" #include "kernel/sigtools.h"
#include <deque>
USING_YOSYS_NAMESPACE USING_YOSYS_NAMESPACE
PRIVATE_NAMESPACE_BEGIN PRIVATE_NAMESPACE_BEGIN