mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-16 00:19:55 +00:00
Restore xf86getsecs() as not having an ANSI equivalent.
This commit is contained in:
parent
f8d7729df3
commit
13af2d1efc
2 changed files with 15 additions and 0 deletions
|
|
@ -2957,3 +2957,17 @@ xf86GetMotionEvents(DeviceIntPtr pDev, xTimecoord *buff, unsigned long start,
|
|||
{
|
||||
return GetMotionHistory(pDev, buff, start, stop, pScreen);
|
||||
}
|
||||
|
||||
_X_EXPORT void
|
||||
xf86getsecs(long * secs, long * usecs)
|
||||
{
|
||||
struct timeval tv;
|
||||
|
||||
X_GETTIMEOFDAY(&tv);
|
||||
if (secs)
|
||||
*secs = tv.tv_sec;
|
||||
if (usecs)
|
||||
*usecs= tv.tv_usec;
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue