------------------------------------------------------------ revno: 13052 revision-id: squid3@treenet.co.nz-20131209010229-762w6av1uwfpx9o0 parent: squid3@treenet.co.nz-20131206121941-b5b7wwqsa2i2diz1 author: Francesco Chemolli committer: Amos Jeffries branch nick: 3.4 timestamp: Sun 2013-12-08 18:02:29 -0700 message: OpenBSD portability fix in DiskThreads ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20131209010229-762w6av1uwfpx9o0 # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 # testament_sha1: fd288f28a944c3f258df0ec9a91ac1ffbc957e41 # timestamp: 2013-12-09 01:04:40 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 # base_revision_id: squid3@treenet.co.nz-20131206121941-\ # b5b7wwqsa2i2diz1 # # Begin patch === modified file 'src/DiskIO/DiskThreads/DiskThreads.h' --- src/DiskIO/DiskThreads/DiskThreads.h 2012-08-28 13:00:30 +0000 +++ src/DiskIO/DiskThreads/DiskThreads.h 2013-12-09 01:02:29 +0000 @@ -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