[ruby/prism] Include unistd.h before cheching _POSIX_MAPPED_FILES

https://github.com/ruby/prism/commit/84b3c294f0
This commit is contained in:
HASUMI Hitoshi 2024-02-16 14:40:52 +09:00 committed by git
parent 15b53e901c
commit f0a46c6334
2 changed files with 1 additions and 1 deletions

View File

@ -15,6 +15,7 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h>
/** /**
* We want to be able to use the PRI* macros for printing out integers, but on * We want to be able to use the PRI* macros for printing out integers, but on

View File

@ -21,7 +21,6 @@
#include <fcntl.h> #include <fcntl.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h>
#endif #endif
/** /**