From 9baf38db440cb3f300808095bec7e5bc138b8b32 Mon Sep 17 00:00:00 2001 From: Pouya Eghbali Date: Thu, 7 Nov 2019 00:11:44 +0100 Subject: [PATCH] Allow compilation of v0.23.x on FreeBSD and variants (#1952) --- src/pipeline.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pipeline.cc b/src/pipeline.cc index f13a218c..902a6445 100644 --- a/src/pipeline.cc +++ b/src/pipeline.cc @@ -38,6 +38,9 @@ #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 #define STAT64_STRUCT stat64 #define STAT64_FUNCTION stat64