Fix build with musl 1.2.4 (#3755)

This commit is contained in:
Kleis Auke Wolthuizen 2023-08-07 22:57:00 +02:00 committed by GitHub
parent ffefbd2ecc
commit 2829e17743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,18 +20,15 @@
#include "operations.h" #include "operations.h"
#include "pipeline.h" #include "pipeline.h"
#if defined(WIN32) #ifdef _WIN32
#define STAT64_STRUCT __stat64 #define STAT64_STRUCT __stat64
#define STAT64_FUNCTION _stat64 #define STAT64_FUNCTION _stat64
#elif defined(__APPLE__) #elif defined(_LARGEFILE64_SOURCE)
#define STAT64_STRUCT stat
#define STAT64_FUNCTION stat
#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
#define STAT64_STRUCT stat
#define STAT64_FUNCTION stat
#else
#define STAT64_STRUCT stat64 #define STAT64_STRUCT stat64
#define STAT64_FUNCTION stat64 #define STAT64_FUNCTION stat64
#else
#define STAT64_STRUCT stat
#define STAT64_FUNCTION stat
#endif #endif
class PipelineWorker : public Napi::AsyncWorker { class PipelineWorker : public Napi::AsyncWorker {