From 1de2b87da97f9c79eb75b8ccb45d49ed965a1068 Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Sat, 30 Nov 2013 23:18:16 +0100 Subject: [PATCH] OpenBSD portability fix in DiskThreads --- src/DiskIO/DiskThreads/DiskThreads.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/DiskIO/DiskThreads/DiskThreads.h b/src/DiskIO/DiskThreads/DiskThreads.h index 5c00e1f67d..5febb1a1b5 100644 --- a/src/DiskIO/DiskThreads/DiskThreads.h +++ b/src/DiskIO/DiskThreads/DiskThreads.h @@ -10,6 +10,12 @@ #include "dlink.h" #include "typedefs.h" +/* this non-standard-conformant include is needed in order to have stat(2) and struct stat + properly defined on some systems (e.g. OpenBSD 5.4) */ +#if HAVE_SYS_STAT_H +#include +#endif + #if AUFS_IO_THREADS #define NUMTHREADS AUFS_IO_THREADS #else -- 2.47.2