Index: subversion/bindings/swig/include/svn_global.swg
===================================================================
--- subversion/bindings/swig/include/svn_global.swg	(revision 24543)
+++ subversion/bindings/swig/include/svn_global.swg	(working copy)
@@ -146,6 +146,25 @@
 
 
 #ifdef SWIGRUBY
+%typemap (in) long long
+{
+  $1 = ($1_ltype)NUM2LL($input);
+}
+
+%typemap (in) unsigned long long
+{
+  $1 = ($1_ltype)NUM2ULL($input);
+}
+
+%typemap (out) long long
+{
+  $result = LL2NUM((apr_int64_t)($1));
+}
+
+%typemap(argout) long long *OUTPUT {
+  %append_output(LL2NUM(*$1));
+}
+
 /* Ruby has strict capitalization conventions - 
    tell SWIG to not warn as it renames things to follow these. */
 #pragma SWIG nowarn=801
