diff -ruwN source/gettext-tools/gnulib-lib/getdtablesize.c source-new/gettext-tools/gnulib-lib/getdtablesize.c
--- source/gettext-tools/gnulib-lib/getdtablesize.c	2016-06-11 06:59:58.000000000 -0600
+++ source-new/gettext-tools/gnulib-lib/getdtablesize.c	2019-01-05 08:45:36.015291070 -0700
@@ -84,6 +84,14 @@
   return dtablesize;
 }
 
+#elif defined(__redox__)
+
+int
+getdtablesize (void)
+{
+  return INT_MAX;
+}
+
 #else
 
 # include <limits.h>
diff -ruwN source/gettext-tools/gnulib-lib/spawni.c source-new/gettext-tools/gnulib-lib/spawni.c
--- source/gettext-tools/gnulib-lib/spawni.c	2016-06-11 07:00:02.000000000 -0600
+++ source-new/gettext-tools/gnulib-lib/spawni.c	2019-01-05 08:55:44.661641522 -0700
@@ -51,10 +51,10 @@
 # include <local-setxid.h>
 #else
 # if !HAVE_SETEUID
-#  define seteuid(id) setresuid (-1, id, -1)
+#  define seteuid(id) setreuid (-1, id)
 # endif
 # if !HAVE_SETEGID
-#  define setegid(id) setresgid (-1, id, -1)
+#  define setegid(id) setregid (-1, id)
 # endif
 # define local_seteuid(id) seteuid (id)
 # define local_setegid(id) setegid (id)
diff -ruwN source/gettext-tools/Makefile.am source-new/gettext-tools/Makefile.am
--- source/gettext-tools/Makefile.am	2023-09-19 03:08:31.000000000 +0700
+++ source-new/gettext-tools/Makefile.am	2025-10-05 12:39:33.287595871 +0700
@@ -19,7 +19,7 @@
 AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
 ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4
 
-SUBDIRS = gnulib-lib libgrep src libgettextpo po its projects styles emacs misc man m4 tests system-tests gnulib-tests examples doc
+SUBDIRS = gnulib-lib libgrep src libgettextpo po its projects styles emacs misc man m4
 
 EXTRA_DIST = misc/DISCLAIM
 MOSTLYCLEANFILES = core *.stackdump
