--- ./gio/gsocket.c_orig	2023-11-14 01:06:17.412446398 -0600
+++ ./gio/gsocket.c	2023-11-14 01:14:22.887084031 -0600
@@ -59,7 +59,8 @@
 #endif
 
 #ifdef _AIX
-#include <sys/socket.h>
+#include  <sys/socketvar.h>
+extern int sendmmsg (int, struct mmsghdr *, unsigned int, int);
 extern int recvmmsg (int, struct mmsghdr *, unsigned int, int, struct timespec *);
 #endif
 
--- ./glib/tests/getpwuid-preload.c_orig	2023-11-14 00:25:34.730391485 -0600
+++ ./glib/tests/getpwuid-preload.c	2023-11-14 00:44:07.524724520 -0600
@@ -58,6 +58,7 @@
 
 #undef getpwuid
 
+#ifndef _AIX
 static struct passwd my_pw;
 
 DEFINE_WRAPPER (struct passwd *, getpwuid, (uid_t uid))
@@ -89,3 +90,5 @@
   pwd->pw_name = NULL;
   return code;
 }
+
+#endif
