fix msys2 build for real

This commit is contained in:
nick black 2021-08-13 15:08:10 -04:00
parent 2bd3fe5f92
commit 54c8189ed2
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
5 changed files with 8 additions and 1 deletions

View File

@ -612,6 +612,7 @@ add_executable(ncls ${LSSRC})
target_include_directories(ncls
PRIVATE
include
src
"${CMAKE_REQUIRED_INCLUDES}"
"${PROJECT_BINARY_DIR}/include"
)

View File

@ -38,6 +38,7 @@ extern "C" {
typedef struct siginfo_t {
int aieeee;
} siginfo_t;
#define sigemptyset(s) 0
#define sigset_t int
#define nl_langinfo(x) "UTF-8"
#define ppoll(w, x, y, z) WSAPoll((w), (x), (y))

View File

@ -120,7 +120,10 @@ error:
}
int fbcon_scrub(const struct ncpile* p, sprixel* s){
return sixel_scrub(p, s);
(void)p;
(void)s;
return 0;
//return sixel_scrub(p, s);
}
#ifdef __linux__

View File

@ -12,6 +12,7 @@
#include <pthread.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <compat/compat.h>
#include <ncpp/Direct.hh>
#ifndef __linux__
#define AT_NO_AUTOMOUNT 0 // not defined on freebsd

View File

@ -4,6 +4,7 @@
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <compat/compat.h>
#include <notcurses/notcurses.h>
static bool fddone;