--- ./engines/fileoperations.c.origin	2025-02-24 07:07:26.070610324 -0600
+++ ./engines/fileoperations.c	2025-02-24 07:09:20.173533423 -0600
@@ -13,7 +13,9 @@
 #include <unistd.h>
 #include "../fio.h"
 #include "../optgroup.h"
+#ifndef _AIX
 #include "../oslib/statx.h"
+#endif
 
 enum fio_engine {
 	UNKNOWN_OP_ENGINE = 0,
@@ -141,7 +143,7 @@
 	struct timespec start;
 	int do_lat = !td->o.disable_lat;
 	struct stat statbuf;
-#ifndef WIN32
+#if !defined(WIN32) && !defined(_AIX)
 	struct statx statxbuf;
 	char *abspath;
 #endif
@@ -169,7 +171,7 @@
 		ret = lstat(f->file_name, &statbuf);
 		break;
 	case FIO_FILESTAT_STATX:
-#ifndef WIN32
+#if !defined(WIN32) && !defined(_AIX)
 		abspath = realpath(f->file_name, NULL);
 		if (abspath) {
 			ret = statx(-1, abspath, 0, STATX_ALL, &statxbuf);
