mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 10:10:00 +00:00
fibmap.f2fs: compile fix for musl libc
Include sys/types.h for major/minor macros. This fixes the following compile error with musl libc: fibmap.o: In function `print_stat': /home/ncopa/src/f2fs-tools/tools/fibmap.c:34: undefined reference to `minor' /home/ncopa/src/f2fs-tools/tools/fibmap.c:34: undefined reference to `major' fibmap.o: In function `stat_bdev': /home/ncopa/src/f2fs-tools/tools/fibmap.c:54: undefined reference to `minor' /home/ncopa/src/f2fs-tools/tools/fibmap.c:54: undefined reference to `major' collect2: error: ld returned 1 exit status Signed-off-by: Natanael Copa <ncopa@alpinelinux.org> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
This commit is contained in:
parent
99250ec1aa
commit
379ff8916e
@ -5,6 +5,7 @@
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <libgen.h>
|
||||
|
Loading…
Reference in New Issue
Block a user