mock pid_t for windows

This commit is contained in:
nick black 2021-07-31 10:33:50 -04:00 committed by nick black
parent 4c7dc8b327
commit 78382087f0
2 changed files with 4 additions and 1 deletions

View File

@ -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){

View File

@ -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))