]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
OpenBSD portability fix in DiskThreads
authorFrancesco Chemolli <kinkie@squid-cache.org>
Sat, 30 Nov 2013 22:18:16 +0000 (23:18 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Sat, 30 Nov 2013 22:18:16 +0000 (23:18 +0100)
src/DiskIO/DiskThreads/DiskThreads.h

index 5c00e1f67d03ac24c84b064309fb2f9a186de989..5febb1a1b53f7f6ef845a80e061b7b105d210e7a 100644 (file)
 #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 <sys/stat.h>
+#endif
+
 #if AUFS_IO_THREADS
 #define NUMTHREADS AUFS_IO_THREADS
 #else