$FreeBSD$ --- unsquashfs.c 2009-04-05 23:23:06.000000000 +0200 +++ unsquashfs.c 2010-04-29 17:48:22.000000000 +0200 @@ -26,6 +26,10 @@ #include "squashfs_compat.h" #include "read_fs.h" +#ifdef __FreeBSD__ +#include +#endif + struct cache *fragment_cache, *data_cache; struct queue *to_reader, *to_deflate, *to_writer, *from_writer; pthread_t *thread, *deflator_thread;