include sys/types.h for dev_t definition
authorKhem Raj <raj.khem@gmail.com>
Tue, 15 Sep 2015 00:05:21 +0000 (00:05 +0000)
committerJens Axboe <axboe@fb.com>
Tue, 15 Sep 2015 14:44:05 +0000 (08:44 -0600)
Avoids the build failures when sys/types.h does not get included
indirectly through other headers.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
blktrace.h

index 380aec75c60702d7cb85ffef33558084320c2242..944fc084cc090d5736911a8ca304bc8a2e9eacf6 100644 (file)
@@ -5,6 +5,7 @@
 #include <limits.h>
 #include <byteswap.h>
 #include <endian.h>
+#include <sys/types.h>
 
 #include "blktrace_api.h"
 #include "rbtree.h"