--- ./tools/testsolv.c_orig	2020-01-19 10:05:29 +0000
+++ ./tools/testsolv.c	2020-01-19 10:05:53 +0000
@@ -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/mergesolv.c_orig	2020-01-19 10:08:20 +0000
+++ ./tools/mergesolv.c	2020-01-19 10:08:39 +0000
@@ -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/deb2solv.c_orig	2020-01-19 10:10:05 +0000
+++ ./tools/deb2solv.c	2020-01-19 10:10:25 +0000
@@ -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/dumpsolv.c_orig	2020-01-19 10:11:12 +0000
+++ ./tools/dumpsolv.c	2020-01-19 10:11:33 +0000
@@ -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;
