aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2017-11-12 18:07:54 -0500
committerJaegeuk Kim <jaegeuk@google.com>2017-11-16 16:35:48 -0800
commitcc9219f1bd3cfe708a0c9667332e9843b24c12fb (patch)
tree6654ba6c93063d7b35816cc981cf5b2d4a4a1692 /lib
parent65ce8335cc0d99fe60b7738d606079f826e6406e (diff)
downloadandroid_external_f2fs-tools-cc9219f1bd3cfe708a0c9667332e9843b24c12fb.tar.gz
android_external_f2fs-tools-cc9219f1bd3cfe708a0c9667332e9843b24c12fb.tar.bz2
android_external_f2fs-tools-cc9219f1bd3cfe708a0c9667332e9843b24c12fb.zip
lib/libf2fs.c: include <sys/sysmacros.h>
The macros `major' and `minor' have been moved from <sys/types.h> to <sys/sysmacros.h>. We include the latter to avoid deprecated messages and future proof the code. Change-Id: Idec908d8d2e78d50838a63ad54ec8d1b90dd6f82 Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libf2fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libf2fs.c b/lib/libf2fs.c
index aea22d8..0f1fead 100644
--- a/lib/libf2fs.c
+++ b/lib/libf2fs.c
@@ -19,6 +19,7 @@
#include <sys/stat.h>
#include <sys/mount.h>
#include <sys/ioctl.h>
+#include <sys/sysmacros.h>
#ifndef WITH_ANDROID
#include <scsi/sg.h>
#endif