Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 rock-master-22.06-ruby-concurrent-ruby-ext (1.1.10-1) UNRELEASED; urgency=medium
 .
   * Initial release (Closes: #nnnn)
Author: development user <dockeruser@aborn-t15g-u>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2022-06-24

--- /dev/null
+++ rock-master-22.06-ruby-concurrent-ruby-ext-1.1.10/ext/concurrent/ruby_193_compatible.h
@@ -0,0 +1,26 @@
+#ifndef rb_check_arity
+
+// https://github.com/ruby/ruby/blob/ruby_2_0_0/include/ruby/intern.h
+// rb_check_arity was added in Ruby 2.0
+
+#define UNLIMITED_ARGUMENTS (-1)
+
+static inline void rb_error_arity(int argc, int min, int max)
+{
+  if (min == max) {
+    rb_raise(rb_eTypeError, "wrong number of arguments (%d for %d)", argc, min);
+  }
+  else if (max == UNLIMITED_ARGUMENTS) {
+    rb_raise(rb_eTypeError, "wrong number of arguments (%d for %d+)", argc, min);
+  }
+  else {
+    rb_raise(rb_eTypeError, "wrong number of arguments (%d for %d..%d)", argc, min, max);
+  }
+}
+
+#define rb_check_arity(argc, min, max) do { \
+  if (((argc) < (min)) || ((argc) > (max) && (max) != UNLIMITED_ARGUMENTS)) \
+  rb_error_arity(argc, min, max); \
+} while(0)
+
+#endif
