diff options
author | bland <bland@FreeBSD.org> | 2004-08-02 11:13:37 +0800 |
---|---|---|
committer | bland <bland@FreeBSD.org> | 2004-08-02 11:13:37 +0800 |
commit | a3f544f57819f0c029e65a2354012eb7c97e7674 (patch) | |
tree | c29b24f4185dbc62dd27025f76b95faae79ccda2 /graphics | |
parent | d0b96d5b4394fd8e35dd800dd424667f4f7ebb73 (diff) | |
download | freebsd-ports-gnome-a3f544f57819f0c029e65a2354012eb7c97e7674.tar.gz freebsd-ports-gnome-a3f544f57819f0c029e65a2354012eb7c97e7674.tar.zst freebsd-ports-gnome-a3f544f57819f0c029e65a2354012eb7c97e7674.zip |
Fix build with gcc 3.4
Reported by: many
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/inkscape/files/patch-src::libnr::nr-maybe.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/inkscape/files/patch-src::libnr::nr-maybe.h b/graphics/inkscape/files/patch-src::libnr::nr-maybe.h new file mode 100644 index 000000000000..d7ce3dba1a30 --- /dev/null +++ b/graphics/inkscape/files/patch-src::libnr::nr-maybe.h @@ -0,0 +1,18 @@ +--- src/libnr/nr-maybe.h.orig Mon Aug 2 11:58:44 2004 ++++ src/libnr/nr-maybe.h Mon Aug 2 11:59:21 2004 +@@ -18,13 +18,14 @@ + + #include <stdexcept> + #include <typeinfo> ++#include <string> + + namespace NR { + + /** An exception class for run-time type errors */ + template <typename T> + class IsNot : public std::domain_error { +- IsNot() : domain_error(string("Is not ") + typeid(T).name()) {} ++ IsNot() : domain_error(std::string("Is not ") + typeid(T).name()) {} + }; + + /** A type with only one value, which (in principle) is only equal to itself. |