We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb42813 commit 34f1be9Copy full SHA for 34f1be9
CHANGELOG.md
@@ -1,5 +1,7 @@
1
# Unreleased
2
3
+* Fix a potential compilation issue on some systems. See #470.
4
+
5
# 1.18.1
6
7
* Handle `EPERM` errors when opening files with `O_NOATIME`.
ext/bootsnap/bootsnap.c
@@ -18,6 +18,7 @@
18
#include <sys/types.h>
19
#include <errno.h>
20
#include <fcntl.h>
21
+#include <unistd.h>
22
#include <sys/stat.h>
23
24
#ifndef O_NOATIME
ext/bootsnap/extconf.rb
@@ -3,7 +3,7 @@
require "mkmf"
if %w[ruby truffleruby].include?(RUBY_ENGINE)
- have_func "fdatasync", "fcntl.h"
+ have_func "fdatasync", "unistd.h"
8
unless RUBY_PLATFORM.match?(/mswin|mingw|cygwin/)
9
append_cppflags ["_GNU_SOURCE"] # Needed of O_NOATIME
0 commit comments