From: Francesco Chemolli Date: Mon, 9 Dec 2013 01:02:29 +0000 (-0700) Subject: OpenBSD portability fix in DiskThreads X-Git-Tag: SQUID_3_4_1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efb1f22ba71f991c15afa36a3e3da565b83b9878;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