1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/debian/patches/gcc47-ff5a4cdd.patch Wed Aug 13 17:01:22 2014 +0200
1.3 @@ -0,0 +1,69 @@
1.4 +--- a/shedskin/lib/builtin.hpp
1.5 ++++ b/shedskin/lib/builtin.hpp
1.6 +@@ -1203,10 +1203,10 @@
1.7 + #include "builtin/list.hpp"
1.8 + #include "builtin/tuple.hpp"
1.9 + #include "builtin/str.hpp"
1.10 ++#include "builtin/math.hpp"
1.11 + #include "builtin/dict.hpp"
1.12 + #include "builtin/set.hpp"
1.13 + #include "builtin/file.hpp"
1.14 +-#include "builtin/math.hpp"
1.15 + #include "builtin/format.hpp"
1.16 + #include "builtin/function.hpp"
1.17 + #include "builtin/complex.hpp"
1.18 +--- a/shedskin/lib/collections.hpp
1.19 ++++ b/shedskin/lib/collections.hpp
1.20 +@@ -237,7 +237,7 @@
1.21 + V __getitem__(K key) {
1.22 + register long hash = hasher<K>(key);
1.23 + register dictentry<K, V> *entry;
1.24 +- entry = lookup(key, hash);
1.25 ++ entry = this->lookup(key, hash);
1.26 + if (entry->use != active)
1.27 + return __missing__(key);
1.28 + return entry->value;
1.29 +@@ -255,10 +255,10 @@
1.30 + void *__addtoitem__(K key, V value) { /* XXX */
1.31 + register long hash = hasher<K>(key);
1.32 + register dictentry<K, V> *entry;
1.33 +- entry = lookup(key, hash);
1.34 ++ entry = this->lookup(key, hash);
1.35 + if (entry->use != active) {
1.36 + if(func)
1.37 +- __setitem__(key, __add(func(), value));
1.38 ++ this->__setitem__(key, __add(func(), value));
1.39 + else
1.40 + throw new KeyError(repr(key));
1.41 + } else
1.42 +@@ -281,7 +281,7 @@
1.43 + PyObject *iter = PyObject_GetIter(p);
1.44 + while(key = PyIter_Next(iter)) {
1.45 + value = PyDict_GetItem(p, key);
1.46 +- __setitem__(__to_ss<K>(key), __to_ss<V>(value));
1.47 ++ this->__setitem__(__to_ss<K>(key), __to_ss<V>(value));
1.48 + Py_DECREF(key);
1.49 + }
1.50 + Py_DECREF(iter);
1.51 +--- a/shedskin/lib/os/__init__.cpp
1.52 ++++ b/shedskin/lib/os/__init__.cpp
1.53 +@@ -23,9 +23,7 @@
1.54 + #include <sysexits.h>
1.55 + #endif
1.56 +
1.57 +-namespace std {
1.58 + #include <unistd.h>
1.59 +-}
1.60 +
1.61 + #ifdef WIN32
1.62 + #include <windows.h>
1.63 +--- a/shedskin/lib/socket.cpp
1.64 ++++ b/shedskin/lib/socket.cpp
1.65 +@@ -13,6 +13,7 @@
1.66 + #include "socket.hpp"
1.67 + #include <climits>
1.68 + #include <fcntl.h>
1.69 ++#include <unistd.h>
1.70 +
1.71 + #ifdef WIN32
1.72 +