--- glib/tests/getpwuid-preload.c_orig	2025-10-13 05:13:30.938132926 -0500
+++ glib/tests/getpwuid-preload.c	2025-10-13 05:14:02.040986947 -0500
@@ -97,6 +97,7 @@
 #endif
 #endif
 
+#ifndef _AIX
 #ifdef HAVE_GETPWUID_R
 DEFINE_WRAPPER (int, getpwuid_r, (uid_t           uid,
                                   struct passwd  *restrict pwd,
@@ -110,3 +111,4 @@
   return code;
 }
 #endif
+#endif
--- glib/tests/testing.c_orig	2025-10-13 05:27:42.721302284 -0500
+++ glib/tests/testing.c	2025-10-13 05:29:03.116930402 -0500
@@ -37,6 +37,7 @@
 
 #ifdef G_OS_UNIX
 #define _POSIX_C_SOURCE 200809L  /* for F_DUPFD_CLOEXEC */
+#define F_DUPFD_CLOEXEC FD_CLOEXEC
 #include <fcntl.h>
 #include <glib-unix.h>
 #include <unistd.h>
