freebsd-ports/graphics/osg-devel/files/patch-ac
Maxim Sobolev 3a4d8afb6b Add osg 0.8.38, a C++/OpenGL scene graph library for real-time
rendering.

PR:		26926
Submitted by:	Randall Hopper <aa8vb@nc.rr.com>
2001-05-31 10:10:36 +00:00

12 lines
392 B
Plaintext

--- work/OpenSceneGraph-0.8/include/osg/Timer Wed Jan 24 09:42:44 2001
+++ include/osg/Timer Mon Apr 23 18:58:17 2001
@@ -43,7 +43,7 @@
}
#pragma optimize("",on)
#endif
-#ifdef __linux
+#if defined(__linux) || defined(__FreeBSD__)
#define CLK(x) __asm__ volatile (".byte 0x0f, 0x31" : "=A" (x))
inline Timer_t tick( void ) {Timer_t x;CLK(x);return x;}
#endif