From: Dmitry V. Levin Date: Tue, 24 May 2016 02:56:39 +0000 (+0000) Subject: tests/btrfs.c: fix build with u64 based BTRFS_IOC_DEFAULT_SUBVOL X-Git-Tag: v4.12~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6697d15f0a2ab163b2af606b34af737a977fa2d0;p=strace tests/btrfs.c: fix build with u64 based BTRFS_IOC_DEFAULT_SUBVOL * tests/btrfs.c: Fix build on systems where BTRFS_IOC_DEFAULT_SUBVOL is defined using unexported type "u64". --- diff --git a/tests/btrfs.c b/tests/btrfs.c index 706b97b7..6d4d1ed7 100644 --- a/tests/btrfs.c +++ b/tests/btrfs.c @@ -54,6 +54,12 @@ # define BTRFS_NAME_LEN 255 #endif +/* + * Prior to Linux 3.12, the BTRFS_IOC_DEFAULT_SUBVOL used u64 in + * its definition, which isn't exported by the kernel. + */ +typedef __u64 u64; + static const char *btrfs_test_root; static int btrfs_test_dir_fd; static bool verbose = false;