From 78382087f0ae16371be8d32c873c0eb544d57d9c Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 31 Jul 2021 10:33:50 -0400 Subject: [PATCH] mock pid_t for windows --- src/compat/compat.c | 4 +++- src/compat/compat.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/compat/compat.c b/src/compat/compat.c index 07a2b8e6b..4f94e8808 100644 --- a/src/compat/compat.c +++ b/src/compat/compat.c @@ -15,7 +15,9 @@ char* strndup(const char* str, size_t size){ return r; } int set_fd_nonblocking(int fd, unsigned state, unsigned* oldstate){ // FIXME - logerror("Not implemented for %d %u %p\n", fd, state, oldstate); + (void)fd; + (void)state; + (void)oldstate; return -1; } pid_t waitpid(pid_t pid, int* state, int options){ diff --git a/src/compat/compat.h b/src/compat/compat.h index d46f1729b..11515e961 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -33,6 +33,7 @@ extern "C" { typedef struct siginfo_t { int aieeee; } siginfo_t; +#define pid_t DWORD #define sigset_t int #define nl_langinfo(x) "UTF-8" #define ppoll(w, x, y, z) WSAPoll((w), (x), (y))