aboutsummaryrefslogtreecommitdiff
path: root/graphics/osg-devel/files/patch-ag
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/osg-devel/files/patch-ag')
-rw-r--r--graphics/osg-devel/files/patch-ag47
1 files changed, 0 insertions, 47 deletions
diff --git a/graphics/osg-devel/files/patch-ag b/graphics/osg-devel/files/patch-ag
deleted file mode 100644
index f98f5c72fd26..000000000000
--- a/graphics/osg-devel/files/patch-ag
+++ /dev/null
@@ -1,47 +0,0 @@
---- work/OpenSceneGraph-0.8/src/osg/Timer.cpp Thu Dec 7 15:50:51 2000
-+++ src/osg/Timer.cpp Mon Apr 23 19:04:58 2001
-@@ -59,15 +59,33 @@
-
- #endif // ]
-
--#ifdef __linux // [
--#include <unistd.h>
--#include <sys/mman.h>
-+#if defined(__linux) || defined(__FreeBSD__) // [
-+
-+# include <unistd.h>
-+# if defined(__linux)
-+# include <sys/mman.h>
-+# elif defined(__FreeBSD__)
-+# include <sys/types.h>
-+# include <sys/sysctl.h>
-+# endif
-
- int Timer::inited = 0;
- double Timer::cpu_mhz = 0.0;
-
- void Timer::init( void )
- {
-+# if defined(__FreeBSD__)
-+ int cpuspeed;
-+ size_t len;
-+
-+ len = sizeof(cpuspeed);
-+ if (sysctlbyname("machdep.tsc_freq", &cpuspeed, &len, NULL, NULL) == -1) {
-+ perror("sysctlbyname(machdep.tsc_freq)");
-+ return;
-+ }
-+ cpu_mhz = cpuspeed / 1e6;
-+
-+# elif defined(__linux)
- char buff[128];
- FILE *fp = fopen( "/proc/cpuinfo", "r" );
-
-@@ -87,6 +105,7 @@
- }
- }
- fclose( fp );
-+# endif
- inited = 1;
- }
-