Fix build on Windows some more

This commit is contained in:
Tim-Philipp Müller 2020-06-25 18:38:48 +01:00
parent a98b620683
commit 93e65a8541
2 changed files with 6 additions and 0 deletions

View File

@ -33,6 +33,8 @@
#ifndef _WIN32 #ifndef _WIN32
#include <sys/time.h> #include <sys/time.h>
#else
#include <winsock2.h> /* for struct timeval */
#endif #endif
#include <assert.h> #include <assert.h>

View File

@ -32,6 +32,10 @@
#define R_OK 4 #define R_OK 4
#endif #endif
#if defined(_WIN32) && !defined(S_ISFIFO)
#define S_ISFIFO(m) 0
#endif
static FcConfig *_fcConfig; /* MT-safe */ static FcConfig *_fcConfig; /* MT-safe */
static FcMutex *_lock; static FcMutex *_lock;