--- ./engines/fileoperations.c.origin	2023-11-28 06:47:07.277021090 -0600
+++ ./engines/fileoperations.c	2023-11-28 06:47:14.220197261 -0600
@@ -13,7 +13,9 @@
 #include <unistd.h>
 #include "../fio.h"
 #include "../optgroup.h"
+#ifndef _AIX
 #include "../oslib/statx.h"
+#endif
 
 
 struct fc_data {
@@ -109,7 +111,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
@@ -137,7 +139,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);
@@ -316,3 +318,4 @@
 	unregister_ioengine(&ioengine_filestat);
 	unregister_ioengine(&ioengine_filedelete);
 }
+
