#include <stdbool.h>
#include <sys/stat.h>
#include <sys/types.h>
-#ifdef HAVE_SYS_XATTR_H
+#ifdef __linux__
# include <sys/xattr.h>
#endif
#include <assert.h>
close(fd2);
}
-#ifdef HAVE_SYS_XATTR_H
+#ifdef __linux__
/* Compares an extended attribute of the files. */
static void cmp_xattr(const char *file1, const char *file2,
const char *xattr_name, ssize_t max_size,
free(list2);
}
}
-#endif /* HAVE_SYS_XATTR_H */
+#endif /* __linux__ */
/* Compares special NTFS data of the files, as accessed through extended
* attributes. */
static void special_cmp(const char *file1, const char *file2)
{
-#ifdef HAVE_SYS_XATTR_H
+#ifdef __linux__
cmp_xattr(file1, file2, "system.ntfs_acl", 0, false);
cmp_xattr(file1, file2, "system.ntfs_attrib", 0, false);
cmp_xattr(file1, file2, "system.ntfs_dos_name", 0, true);
file1, file2);
#if 0
if (ntfs_mode && st1.st_atime != st2.st_atime)
- difference("Access times of `%s' and `%s' are not the same",
- file1, file2);
+ difference("Access times of `%s' (%x) and `%s' (%x) are "
+ "not the same",
+ file1, st1.st_atime, file2, st2.st_atime);
+#endif
if (st1.st_mtime != st2.st_mtime)
difference("Modification times of `%s' (%x) and `%s' (%x) are "
"not the same",
file1, st1.st_mtime, file2, st2.st_mtime);
- if (st1.st_ctime != st2.st_ctime)
- difference("Status change times of `%s' and `%s' are not the same",
- file1, file2);
-#endif
if ((ntfs_mode || S_ISREG(st1.st_mode)) && st1.st_nlink != st2.st_nlink)
difference("Link count of `%s' (%u) and `%s' (%u) "
"are not the same",