--- ./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"
--- ./tools/deb2solv.c_orig	2025-09-23 10:56:16.156660921 -0500
+++ ./tools/deb2solv.c	2025-09-23 10:56:44.202245371 -0500
@@ -15,7 +15,9 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
+#ifndef _AIX
 #include <getopt.h>
+#endif
 
 #include "util.h"
 #include "pool.h"
--- ./tools/repo2solv.c_orig	2025-09-23 10:57:35.584169902 -0500
+++ ./tools/repo2solv.c	2025-09-23 10:58:06.328019970 -0500
@@ -4,8 +4,9 @@
  * This program is licensed under the BSD license, read LICENSE.BSD
  * for further information
  */
-
+#ifndef _AIX
 #include <getopt.h>
+#endif
 #include <sys/types.h>
 #include <stdio.h>
 #include <stdlib.h>
