--- ./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	2025-10-13 06:39:07.915154037 -0500
+++ ./glib/tests/getpwuid-preload.c	2025-10-13 06:40:12.006063867 -0500
@@ -70,6 +70,7 @@
   return (path != NULL && *path != '\0');
 }
 
+#ifndef _AIX
 static struct passwd my_pw;
 
 DEFINE_WRAPPER (struct passwd *, getpwuid, (uid_t uid))
@@ -94,6 +95,7 @@
   return code;
 }
 #endif
+#endif
 
 #ifdef HAVE_GETPWUID_R
 DEFINE_WRAPPER (int, getpwuid_r, (uid_t           uid,
