--- sc/source/filter/excel/xltools.cxx.ark	2006-05-01 14:12:07.000000000 +0200
+++ sc/source/filter/excel/xltools.cxx	2006-05-01 14:16:10.000000000 +0200
@@ -40,6 +40,13 @@
 #include <algorithm>
 #include <math.h>
 
+#ifdef _GLIBCXX_ALGORITHM // We're using GNU libstdc++, not stlport
+#include <ext/algorithm>
+namespace std {
+	using __gnu_cxx::lexicographical_compare_3way;
+}
+#endif
+
 #ifndef INCLUDED_SAL_MATHCONF_H
 #include <sal/mathconf.h>
 #endif
