openbsd-ports/x11/mplayer/patches/patch-TOOLS_subfont-c_subfont_c
ajacoutot c2b0a0cb83 - add live555 support
- regen patches while here

from brad
ok robert@
2007-04-19 08:37:09 +00:00

23 lines
628 B
Plaintext

$OpenBSD: patch-TOOLS_subfont-c_subfont_c,v 1.7 2007/04/19 08:37:09 ajacoutot Exp $
--- TOOLS/subfont-c/subfont.c.orig Sun Jun 11 20:35:45 2006
+++ TOOLS/subfont-c/subfont.c Thu Apr 19 09:41:02 2007
@@ -831,6 +831,18 @@ unsigned gmatrix(unsigned *m, int r, int w, double con
}
+// Returns current time in microseconds
+
+#include <sys/time.h>
+
+unsigned int GetTimer(){
+ struct timeval tv;
+ struct timezone tz;
+// float s;
+ gettimeofday(&tv,&tz);
+// s=tv.tv_usec;s*=0.000001;s+=tv.tv_sec;
+ return (tv.tv_sec*1000000+tv.tv_usec);
+}
void alpha() {
unsigned int ttime;
int const g_r = ceil(radius);