summaryrefslogtreecommitdiff
path: root/graphics/libvideogfx/patches/patch-ag
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/libvideogfx/patches/patch-ag')
-rw-r--r--graphics/libvideogfx/patches/patch-ag22
1 files changed, 22 insertions, 0 deletions
diff --git a/graphics/libvideogfx/patches/patch-ag b/graphics/libvideogfx/patches/patch-ag
new file mode 100644
index 00000000000..7a3f72ef6a4
--- /dev/null
+++ b/graphics/libvideogfx/patches/patch-ag
@@ -0,0 +1,22 @@
+$NetBSD: patch-ag,v 1.1 2006/01/15 20:34:13 joerg Exp $
+
+--- libvideogfx/graphics/datatypes/primitives.hh.orig 2006-01-15 20:26:10.000000000 +0000
++++ libvideogfx/graphics/datatypes/primitives.hh
+@@ -35,6 +35,8 @@
+ #ifndef LIBVIDEOGFX_GRAPHICS_DATATYPES_PRIMITIVES_HH
+ #define LIBVIDEOGFX_GRAPHICS_DATATYPES_PRIMITIVES_HH
+
++#include <cmath>
++
+ namespace videogfx {
+
+ template <class T> struct Point2D
+@@ -52,7 +54,7 @@ namespace videogfx {
+
+ T x,y;
+
+- T Length() const { return (T)sqrt((double)(x*x+y*y)); }
++ T Length() const { return (T)std::sqrt((double)(x*x+y*y)); }
+ };
+
+ template <class T> struct Rect2D