From 114aa5a86992f3d8564e56bc4dee68bbf39fe378 Mon Sep 17 00:00:00 2001 From: Nicolas Joly <njoly@pasteur.fr> Date: Thu, 20 Apr 2017 11:05:58 +0200 Subject: [PATCH] Fix compilation on NetBSD, which require sys/stat.h header file. --- src/FqBaseBackend.cpp | 3 +++ src/FqMainBackend.cpp | 2 ++ src/unit_test_fqwriter.cpp | 3 +++ 3 files changed, 8 insertions(+) diff --git a/src/FqBaseBackend.cpp b/src/FqBaseBackend.cpp index 43eccfd..07e4fd1 100644 --- a/src/FqBaseBackend.cpp +++ b/src/FqBaseBackend.cpp @@ -4,6 +4,9 @@ * Created on: Jan 20, 2016 * Author: vlegrand */ + +#include <sys/stat.h> + #include <string> #include <stdexcept> #include <fcntl.h> diff --git a/src/FqMainBackend.cpp b/src/FqMainBackend.cpp index 240e96d..a76d6a8 100644 --- a/src/FqMainBackend.cpp +++ b/src/FqMainBackend.cpp @@ -5,6 +5,8 @@ * Author: vlegrand */ +#include <sys/stat.h> + #include <stdio.h> //#include <stdlib.h> #include <fcntl.h> diff --git a/src/unit_test_fqwriter.cpp b/src/unit_test_fqwriter.cpp index 62d88d1..21ad59c 100644 --- a/src/unit_test_fqwriter.cpp +++ b/src/unit_test_fqwriter.cpp @@ -4,6 +4,9 @@ * Created on: Mar 14, 2016 * Author: vlegrand */ + +#include <sys/stat.h> + #include <cstdio> #include <cassert> #include <unistd.h> -- GitLab