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 --- wmifinfo/wmifinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wmifinfo/wmifinfo.c b/wmifinfo/wmifinfo.c index 438423f..1f5c8b9 100644 --- a/wmifinfo/wmifinfo.c +++ b/wmifinfo/wmifinfo.c @@ -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); -- 2.1.0 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.