Skip to content

Commit

Permalink
Merge pull request #473 from Shopify/gnu-source
Browse files Browse the repository at this point in the history
Define _GNU_SOURCE properly
  • Loading branch information
casperisfine committed Jan 31, 2024
2 parents d4b4666 + 33754b4 commit 4b6d40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/bootsnap/extconf.rb
Expand Up @@ -6,7 +6,7 @@
have_func "fdatasync", "unistd.h"

unless RUBY_PLATFORM.match?(/mswin|mingw|cygwin/)
append_cppflags ["_GNU_SOURCE"] # Needed of O_NOATIME
append_cppflags ["-D_GNU_SOURCE"] # Needed of O_NOATIME
end

append_cflags ["-O3", "-std=c99"]
Expand Down

0 comments on commit 4b6d40e

Please sign in to comment.