summaryrefslogtreecommitdiff
path: root/ext/-test-/time/leap_second.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-05 11:53:18 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-05 11:53:18 +0000
commit7c87ee8a14e0d15775f6e1a3ee2f3ccd0c3828f7 (patch)
tree5f2027a5ec14a917293efc02f4ae7bdba4abc4f5 /ext/-test-/time/leap_second.c
parent6538f67d4dccc32f1613be188a0748f0d4f90a05 (diff)
Add missing file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/-test-/time/leap_second.c')
-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 0000000000..f24fcb670c
--- /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);
+}