Skip to content

Commit 169b7ce

Browse files
Cueliveqinzhiben11
authored andcommitted
blktrace: fix compilation error on the uos system
When compiling on uos, it fails with an undefined reference to 'major'. Fix this by including the correct header for it. liuyafei <liuyafei@uniontech.com>
1 parent b5904c0 commit 169b7ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

blktrace.c

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <stdlib.h>
66
#include <unistd.h>
77
#include <errno.h>
8+
#include <sys/sysmacros.h>
89

910
#include "flist.h"
1011
#include "fio.h"

0 commit comments

Comments
 (0)