Skip to content

Commit 0f493e2

Browse files
committed
These CLOCK_* constants are defined in system headers on OracleLinux 7
* No need to workaround anymore.
1 parent 5b014f3 commit 0f493e2

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tool/generate-native-config.rb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -800,15 +800,10 @@ def constants(name)
800800
CLOCK_UPTIME_RAW
801801
CLOCK_UPTIME_RAW_APPROX
802802
CLOCK_VIRTUAL
803+
CLOCK_BOOTTIME
804+
CLOCK_REALTIME_ALARM
805+
CLOCK_BOOTTIME_ALARM
803806
]
804-
805-
# Give the following clock ids a default so they works on newer Linux built by older Linux:
806-
# https://github.com/oracle/truffleruby/issues/1480
807-
cg.const 'CLOCK_BOOTTIME', (7 if RUBY_PLATFORM =~ /linux/)
808-
# These 2 are not supported on linux-aarch64:
809-
# https://patchwork.kernel.org/project/linux-arm-kernel/patch/[email protected]/#21274245
810-
cg.const 'CLOCK_REALTIME_ALARM', (8 if RUBY_PLATFORM =~ /x86_64-linux/)
811-
cg.const 'CLOCK_BOOTTIME_ALARM', (9 if RUBY_PLATFORM =~ /x86_64-linux/)
812807
end
813808

814809
TypesGenerator.new.generate

0 commit comments

Comments
 (0)