mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
windows hates all of fd.c
This commit is contained in:
parent
ff2ef8571d
commit
d3d0838c07
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user