windows hates all of fd.c

This commit is contained in:
nick black 2021-07-22 16:12:34 -04:00
parent ff2ef8571d
commit d3d0838c07
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 8 additions and 1 deletions

View File

@ -43,6 +43,8 @@ int clock_nanosleep(clockid_t clockid, int flags,
const struct timespec *request,
struct timespec *remain);
char* strndup(const char* str, size_t size);
#ifdef __cplusplus
}
#endif

View File

@ -3,7 +3,6 @@
#include <pthread.h>
#ifndef __MINGW64__
#include <sys/wait.h>
#endif
#include <sys/time.h>
#ifdef USING_PIDFD
#error "USING_PIDFD was already defined; it should not be."
@ -463,6 +462,12 @@ int ncsubproc_destroy(ncsubproc* n){
}
return ret;
}
#else
int set_fd_nonblocking(int fd, unsigned state, unsigned* oldstate){ // FIXME
logerror("Not implemented for %d %u %p\n", fd, state, oldstate);
return -1;
}
#endif
ncplane* ncsubproc_plane(ncsubproc* n){
return n->nfp->ncp;