summaryrefslogtreecommitdiff
path: root/graphics/gnash/files/patch-libbase_GnashSleep.h
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2016-12-02 08:10:20 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2016-12-02 08:10:20 +0000
commitc67cb29943f48e2482e7f3b167d28a828bce7a20 (patch)
tree6bf7a2c7a058afb79ffb9150418a3eb2adb9b627 /graphics/gnash/files/patch-libbase_GnashSleep.h
parentAdd LIBPCAP option to allow building with libpcap from ports (diff)
- fix dependency on kde4
- fix build - add LICENSE - add patches from NetBSD
Diffstat (limited to 'graphics/gnash/files/patch-libbase_GnashSleep.h')
-rw-r--r--graphics/gnash/files/patch-libbase_GnashSleep.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/gnash/files/patch-libbase_GnashSleep.h b/graphics/gnash/files/patch-libbase_GnashSleep.h
new file mode 100644
index 000000000000..dca9aef8e9c2
--- /dev/null
+++ b/graphics/gnash/files/patch-libbase_GnashSleep.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-libbase_GnashSleep.h,v 1.1 2013/02/26 11:04:25 joerg Exp $
+
+--- libbase/GnashSleep.h.orig 2013-02-25 18:39:09.000000000 +0000
++++ libbase/GnashSleep.h
+@@ -38,7 +38,7 @@ inline void gnashSleep(size_t useconds)
+ Sleep(useconds / 1000);
+ #else
+ const size_t m = 1000000;
+- const struct timespec t = { useconds / m, (useconds % m) * 1000 };
++ const struct timespec t = { static_cast<time_t>(useconds / m), static_cast<long>((useconds % m) * 1000) };
+ ::nanosleep(&t, 0);
+ #endif
+ }