From: Francesco Chemolli Date: Sat, 30 Nov 2013 22:18:16 +0000 (+0100) Subject: OpenBSD portability fix in DiskThreads X-Git-Tag: SQUID_3_5_0_1~486 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1de2b87da97f9c79eb75b8ccb45d49ed965a1068;p=thirdparty%2Fsquid.git OpenBSD portability fix in DiskThreads --- 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