]> granicus.if.org Git - strace/commitdiff
tests/btrfs.c: fix build with u64 based BTRFS_IOC_DEFAULT_SUBVOL
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 24 May 2016 02:56:39 +0000 (02:56 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 24 May 2016 14:52:27 +0000 (14:52 +0000)
* tests/btrfs.c: Fix build on systems where BTRFS_IOC_DEFAULT_SUBVOL
is defined using unexported type "u64".

tests/btrfs.c

index 706b97b71491e2f19bbe29fd15425b5011d3df39..6d4d1ed7d10241a27ffee125d05eaaa67b61f736 100644 (file)
 # 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;