--- glib/gmem.c.orig	2023-05-14 09:57:50.000000000 -0400
+++ glib/gmem.c	2023-05-14 09:59:39.000000000 -0400
@@ -679,7 +679,8 @@
 #elif defined(HAVE_MEMALIGN)
   res = memalign (alignment, real_size);
 #else
-# error "This platform does not have an aligned memory allocator."
+  /* malloc is 16-byte aligned; otherwise page alignment will do */
+  res = alignment <= 16 ? malloc(real_size) : valloc(real_size);
 #endif
 
   TRACE (GLIB_MEM_ALLOC((void*) res, (unsigned int) real_size, 0, 0));
