Index: sc/source/core/data/column3.cxx
--- sc/source/core/data/column3.cxx.orig
+++ sc/source/core/data/column3.cxx
@@ -55,6 +55,8 @@
 
 #include <o3tl/deleter.hxx>
 
+typedef long ptrdiff_t;
+
 #include <rtl/tencinfo.h>
 
 #include <svl/numformat.hxx>
