pkgsrc/graphics/dx/patches/patch-af

14 lines
426 B
Text
Raw Normal View History

2006-04-28 22:33:30 +02:00
$NetBSD: patch-af,v 1.2 2006/04/28 20:33:30 joerg Exp $
--- src/exec/dxmods/_compoper1.c.orig Sun Sep 26 23:18:48 1999
+++ src/exec/dxmods/_compoper1.c Sun Sep 26 23:19:04 1999
@@ -457,6 +457,9 @@
#ifdef freebsd
# define trunc(x) ((float)((int)(x)))
#endif
2006-04-28 22:33:30 +02:00
+#if defined(__NetBSD__) || defined(__DragonFly__)
+# define trunc(x) ((float)((int)(x)))
+#endif
#ifdef cygwin
# define trunc(x) ((float)((int)(x)))
#endif