--- a/libguile/filesys.c.orig 2024-09-22 13:46:53.000000000 +0800 +++ b/libguile/filesys.c 2024-09-22 14:12:07.000000000 +0800 @@ -46,6 +46,10 @@ #include #include +#ifdef __APPLE__ +#include /* for renameat */ +#endif + #ifdef HAVE_DIRECT_H #include #endif