Skip to contentSkip to conversation

include sys/types.h for dev_t definition

PATCH Applied Khem Raj 2 participants 2 messages Sep 15, 2015

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 include sys/types.h for dev_t definition

Avoids the build failures when sys/types.h does not get included indirectly through other headers.

---
 blktrace.h | 1 +
 1 file changed, 1 insertion(+)
blktrace.h +1 -0
index 380aec7..944fc08 100644
@@ -5,6 +5,7 @@
 #include <limits.h>
 #include <byteswap.h>
 #include <endian.h>
+#include <sys/types.h>
 
 #include "blktrace_api.h"
 #include "rbtree.h"
Signature · 1 line
2.5.2
Applied
#1 lore raw
Quoted 4 lines · Khem Raj

Avoids the build failures when sys/types.h does not get included indirectly through other headers.

Applied, thanks.

Signature · 1 line
Jens Axboe