--- a/src/xz/file_io.c.orig	2025-04-03 06:34:58.000000000 -0500
+++ a/src/xz/file_io.c	2025-04-17 07:36:18.683914460 -0500
@@ -493,7 +493,7 @@
 		return true;
 	}
 
-#ifndef TUKLIB_DOSLIKE
+#if !defined TUKLIB_DOSLIKE && !defined(_AIX)
 	if (fsync(pair->dir_fd)) {
 		message_error(_("%s: Synchronizing the directory of "
 				"the file failed: %s"),
