summaryrefslogtreecommitdiff
path: root/graphics/mpegedit/files/patch-bb
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>2000-06-28 13:34:38 +0000
committerAlexander Langer <alex@FreeBSD.org>2000-06-28 13:34:38 +0000
commit0d731daf26f42272f5017a8ed13501bc198f0e02 (patch)
tree457342d7af8a5dc19d254f34faa577333abf5607 /graphics/mpegedit/files/patch-bb
parentUpdate to version 1.10. (diff)
- Support CC/CXX/CFLAGS/CXXFLAGS/MAKE properly
- Support NOPORTDOCS - Remove USE_GMAKE - Add WWW: line into pkg/DESCR - Add pnm.1 LIB_DEPENDS PR: 19344 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Notes
Notes: svn path=/head/; revision=29938
Diffstat (limited to 'graphics/mpegedit/files/patch-bb')
-rw-r--r--graphics/mpegedit/files/patch-bb33
1 files changed, 33 insertions, 0 deletions
diff --git a/graphics/mpegedit/files/patch-bb b/graphics/mpegedit/files/patch-bb
new file mode 100644
index 000000000000..01c44c3e83c8
--- /dev/null
+++ b/graphics/mpegedit/files/patch-bb
@@ -0,0 +1,33 @@
+--- ui/text_win.C.orig Sun Jun 18 19:56:57 1995
++++ ui/text_win.C Thu Jun 15 08:37:50 2000
+@@ -17,6 +17,7 @@
+ */
+
+ #include "text_win.H"
++#include <sys/time.h>
+ #include <assert.h>
+ #include <stdlib.h>
+
+@@ -407,14 +408,22 @@
+ long time_elapsed;
+ long speed;
+
++#ifdef __FreeBSD__
++ gettimeofday(&clk,(struct timezone *)NULL);
++#else
+ gettimeofday(&clk,(timezone *)NULL);
++#endif
+ time_elapsed = (clk.tv_sec - last_click.tv_sec)*100;
+ time_elapsed+=(clk.tv_usec - last_click.tv_usec)/10000;
+ speed = atol(click_speed);
+ if((time_elapsed<speed) && (callback!=NULL))
+ retval = (*(callback))(callback_data);
+ }
++#ifdef __FreeBSD__
++ gettimeofday(&last_click,(struct timezone *)NULL);
++#else
+ gettimeofday(&last_click,(timezone *)NULL);
++#endif
+ text.inverse=true;
+ TList.Write(text);
+ if(!SendEventFlag)