mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 12:50:14 +01:00
DRIGetSecs() would call getsecs() when XFree86LOADER is defined, relying on
the wrappers to provide it. Wrapper gone, and getsecs doesn't exist on
linux so it now blows up. Fixes it by just calling gettimeofday() in
all cases instead.
This commit is contained in:
parent
049dca0f43
commit
5c9b6f0fb0
2 changed files with 8 additions and 4 deletions
|
|
@ -1,3 +1,11 @@
|
|||
2006-02-14 Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
||||
|
||||
* hw/xfree86/dri/dri.c: (DRIGetSecs):
|
||||
DRIGetSecs() would call getsecs() when XFree86LOADER is defined,
|
||||
relying on the wrappers to provide it. Wrapper gone, and getsecs
|
||||
doesn't exist on linux so it now blows up. Fixes it by just calling
|
||||
gettimeofday() in all cases instead.
|
||||
|
||||
2006-02-14 Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
||||
|
||||
* fb/fbbits.h:
|
||||
|
|
|
|||
|
|
@ -1654,16 +1654,12 @@ DRICopyWindow(WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
|
|||
static void
|
||||
DRIGetSecs(long *secs, long *usecs)
|
||||
{
|
||||
#ifdef XFree86LOADER
|
||||
getsecs(secs,usecs);
|
||||
#else
|
||||
struct timeval tv;
|
||||
|
||||
gettimeofday(&tv, NULL);
|
||||
|
||||
*secs = tv.tv_sec;
|
||||
*usecs = tv.tv_usec;
|
||||
#endif
|
||||
}
|
||||
|
||||
static unsigned long
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue