diff options
author | HASUMI Hitoshi <[email protected]> | 2024-02-16 14:40:52 +0900 |
---|---|---|
committer | git <[email protected]> | 2024-02-20 14:21:17 +0000 |
commit | f0a46c63341336c19a9c8237c65c762ebef99b04 (patch) | |
tree | 3a8633ce9447cc8965f6f1ebda3d5d935676ac81 | |
parent | 15b53e901c15225bdb2d67abb6f2aabf2e93cc4e (diff) |
[ruby/prism] Include unistd.h before cheching _POSIX_MAPPED_FILES
https://github.com/ruby/prism/commit/84b3c294f0
-rw-r--r-- | prism/defines.h | 1 | ||||
-rw-r--r-- | prism/util/pm_string.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/prism/defines.h b/prism/defines.h index 8fa6a6a3d1..66c644939f 100644 --- a/prism/defines.h +++ b/prism/defines.h @@ -15,6 +15,7 @@ #include <stdint.h> #include <stdio.h> #include <string.h> +#include <unistd.h> /** * We want to be able to use the PRI* macros for printing out integers, but on diff --git a/prism/util/pm_string.h b/prism/util/pm_string.h index 758677b197..d6442fc608 100644 --- a/prism/util/pm_string.h +++ b/prism/util/pm_string.h @@ -21,7 +21,6 @@ #include <fcntl.h> #include <sys/mman.h> #include <sys/stat.h> -#include <unistd.h> #endif /** |