Fix the build if there is no -O in the CFLAGS. To fix it by makes

VIDEO_SYNC_PERIOD constant.

PR:		ports/106571
Reported by:	Gerard Seibert <gerard@seibercom.net>
Reviewed by:	marcus (in IRC, FreeNode/#freebsd-gnome)
This commit is contained in:
Jeremy Messenger 2006-12-10 22:39:21 +00:00
parent fb878c6f14
commit 0369fd3b8f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=179425

View File

@ -0,0 +1,15 @@
--- drivers/dummy/dummy_driver.c.orig Sun Dec 10 16:31:55 2006
+++ drivers/dummy/dummy_driver.c Sun Dec 10 16:32:27 2006
@@ -41,10 +41,11 @@
/* this is used for calculate what counts as an xrun */
#define PRETEND_BUFFER_SIZE 4096
+#define VIDEO_SYNC_PERIOD 48000 / 30
+
void
FakeVideoSync( dummy_driver_t *driver )
{
- static const int VIDEO_SYNC_PERIOD = 48000 / 30;
static int vidCounter = VIDEO_SYNC_PERIOD;
int period = driver->period_size;