summaryrefslogtreecommitdiff
path: root/ext/-test-/time
diff options
context:
space:
mode:
Diffstat (limited to 'ext/-test-/time')
-rw-r--r--ext/-test-/time/leap_second.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/-test-/time/leap_second.c b/ext/-test-/time/leap_second.c
new file mode 100644
index 00000000000..f24fcb670cf
--- /dev/null
+++ b/ext/-test-/time/leap_second.c
@@ -0,0 +1,14 @@
+#include "ruby.h"
+
+static VALUE
+bug_time_s_reset_leap_second_info(VALUE klass)
+{
+ reset_leap_second_info();
+ return Qnil;
+}
+
+void
+Init_time_leap_second(VALUE klass)
+{
+ rb_define_singleton_method(klass, "reset_leap_second_info", bug_time_s_reset_leap_second_info, 0);
+}