--- AIO.xs.orig	2022-09-28 01:22:50.000000000 -0700
+++ AIO.xs	2023-03-31 23:43:37.000000000 -0700
@@ -117,6 +117,18 @@
 # include <sys/mount.h>
 #endif
 
+#ifndef MAP_GROWSDOWN
+#define MAP_GROWSDOWN 0
+#endif
+
+#ifndef MAP_32BIT
+#define MAP_32BIT 0
+#endif
+
+#ifndef MAP_STACK
+#define MAP_STACK 0
+#endif
+
 /* the incompetent fool that created musl keeps __linux__, refuses
  * to implement any linux standard apis, and also has no way to test
  * for his broken implementation. don't complain to me if this fails
