--- ./tools/dumpsolv.c_orig	2024-12-02 04:32:28.299640290 -0600
+++ ./tools/dumpsolv.c	2024-12-02 03:05:19.327309928 -0600
@@ -9,7 +9,9 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
+#ifndef _AIX
 #include <getopt.h>
+#endif
 
 static int with_attr;
 static int dump_json;
--- ./tools/mergesolv.c_orig	2024-12-02 04:32:28.309657341 -0600
+++ ./tools/mergesolv.c	2024-12-02 03:05:57.739756958 -0600
@@ -16,7 +16,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <assert.h>
+#ifndef _AIX
 #include <getopt.h>
+#endif
 
 #include "pool.h"
 #include "repo_solv.h"
--- ./tools/testsolv.c_orig	2024-12-02 04:32:28.319674900 -0600
+++ ./tools/testsolv.c	2024-12-02 03:06:28.412294506 -0600
@@ -1,7 +1,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#ifndef _AIX
 #include <getopt.h>
+#endif
 
 #include "pool.h"
 #include "repo.h"
