Add proper include to silence build warning on NetBSD/FreeBSD
authorJens Axboe <jaxboe@fusionio.com>
Sat, 30 Jul 2011 11:29:58 +0000 (13:29 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 30 Jul 2011 11:29:58 +0000 (13:29 +0200)
Reported-by: Bruce Cran <bruce@cran.org.uk>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
os/os-freebsd.h
os/os-netbsd.h

index fad051ff0bfcecf3673bb215d103ff09609a5304..317d403f3bd3f228deeaf7d45f00312986c65be3 100644 (file)
@@ -4,6 +4,7 @@
 #include <errno.h>
 #include <sys/sysctl.h>
 #include <sys/disk.h>
+#include <sys/thr.h>
 
 #include "../file.h"
 
index 7f5f48466b3f9ab8c9c4552160592b542f7cdc49..e03866dfc86c131ea6fa9cf32f4786b45042baf8 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <errno.h>
 #include <sys/param.h>
+#include <sys/thr.h>
 /* XXX hack to avoid confilcts between rbtree.h and <sys/rb.h> */
 #define        rb_node _rb_node
 #include <sys/sysctl.h>