Skip to content

Commit

Permalink
Fix build with musl 1.2.4 (#3755)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke authored Aug 7, 2023
1 parent ffefbd2 commit 2829e17
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/pipeline.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,15 @@
#include "operations.h"
#include "pipeline.h"

#if defined(WIN32)
#ifdef _WIN32
#define STAT64_STRUCT __stat64
#define STAT64_FUNCTION _stat64
#elif defined(__APPLE__)
#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
#elif defined(_LARGEFILE64_SOURCE)
#define STAT64_STRUCT stat64
#define STAT64_FUNCTION stat64
#else
#define STAT64_STRUCT stat
#define STAT64_FUNCTION stat
#endif

class PipelineWorker : public Napi::AsyncWorker {
Expand Down

0 comments on commit 2829e17

Please sign in to comment.