wmifinfo: Add valid timeval.
Patch by Julien BLACHE from Debian: http://sources.debian.net/src/wmifinfo/0.09-7/debian/patches/wmifinfo-timeval_fix.patch/ For more information, see: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503416
This commit is contained in:
parent
e34aacbd37
commit
fedf1586c2
|
@ -49,6 +49,7 @@
|
|||
#define MAXIFS 10
|
||||
#ifdef linux
|
||||
#define DELAY 1000000L
|
||||
#define USEC_PER_SEC 1000000L
|
||||
#else
|
||||
#define DELAY 100000L
|
||||
#endif
|
||||
|
@ -269,8 +270,8 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
#ifdef linux
|
||||
tv.tv_sec = 0;
|
||||
tv.tv_usec = DELAY;
|
||||
tv.tv_sec = DELAY / USEC_PER_SEC;
|
||||
tv.tv_usec = DELAY - (tv.tv_sec * USEC_PER_SEC);
|
||||
|
||||
FD_ZERO(&fds);
|
||||
FD_SET(ConnectionNumber(display), &fds);
|
||||
|
|
Loading…
Reference in a new issue