summaryrefslogtreecommitdiff
path: root/shape.c
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2023-02-17 15:51:16 +0000
committerMatt Valentine-House <matt@eightbitraptor.com>2023-04-06 11:07:16 +0100
commit026321c5b976c5e95731046b94555b1226198be4 (patch)
tree35ba000a654e41ede4ccb9a30322f08b748cb2f7 /shape.c
parent879cda98a4cdce91d736ea9ba81168effe090718 (diff)
downloadruby-026321c5b976c5e95731046b94555b1226198be4.tar.gz
[Feature #19474] Refactor NEWOBJ macros
NEWOBJ_OF is now our canonical newobj macro. It takes an optional ec
Diffstat (limited to 'shape.c')
-rw-r--r--shape.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shape.c b/shape.c
index 6c158b2c8e..36d1adb7d9 100644
--- a/shape.c
+++ b/shape.c
@@ -777,7 +777,9 @@ rb_shape_find_by_id(VALUE mod, VALUE id)
}
#endif
+#ifdef HAVE_MMAP
#include <sys/mman.h>
+#endif
void
Init_default_shapes(void)