diff --git a/src/xz/file_io.c b/src/xz/file_io.c index 6b1a1536..6f784dd6 100644 --- a/src/xz/file_io.c +++ b/src/xz/file_io.c @@ -493,8 +493,9 @@ io_sync_dest(file_pair *pair) return true; } -#if !defined(TUKLIB_DOSLIKE) && !defined(_AIX) +#if !defined(TUKLIB_DOSLIKE) && !defined(_AIX) && !defined(__QNX__) // On AIX, this would fail with EBADF. + // On QNX, this would fail with EINVAL. if (fsync(pair->dir_fd)) { message_error(_("%s: Synchronizing the directory of " "the file failed: %s"),