windows: no poll2

dankamongmen/iterm2complete
nick black 3 years ago committed by nick black
parent 01a2dd048e
commit 39a65572a1

@ -82,6 +82,7 @@ count_debug_lines(const char* output, size_t outputlen){
static void
debug_toggle(struct notcurses* nc){
#ifndef __MINGW64__ // FIXME
ncmenu_rollup(menu);
if(debug){
ncplane_destroy(debug);
@ -134,6 +135,7 @@ debug_toggle(struct notcurses* nc){
}
ncplane_putstr_aligned(n, ncplane_dim_y(n) - 1, NCALIGN_CENTER, "Press Alt+d to hide this window");
debug = n;
#endif
}
static void

@ -156,7 +156,7 @@ int input_dispatcher(struct notcurses* nc){
return -1;
}
// freebsd doesn't have eventfd :/ and apple doesn't even have pipe2() =[ =[
#ifdef __APPLE__
#if defined(__APPLE__) || defined(__MINGW64__)
if(pipe(input_pipefds)){
#else
if(pipe2(input_pipefds, O_CLOEXEC | O_NONBLOCK)){

Loading…
Cancel
Save