]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
OpenBSD portability fix in DiskThreads
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 9 Dec 2013 01:02:29 +0000 (18:02 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 9 Dec 2013 01:02:29 +0000 (18:02 -0700)
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