Hello!
diff -uprN bird-1.0.11/sysdep/unix/io.c bird-1.0.11n/sysdep/unix/io.c --- bird-1.0.11/sysdep/unix/io.c 2008-08-21 17:28:49.000000000 +0200 +++ bird-1.0.11n/sysdep/unix/io.c 2008-08-21 17:28:04.000000000 +0200 @@ -11,6 +11,7 @@ #include <stdlib.h> #include <time.h> #include <sys/time.h> +#include <sys/times.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/fcntl.h> @@ -18,6 +19,8 @@ #include <unistd.h> #include <errno.h>
+#include <asm/param.h> + #include "nest/bird.h" #include "lib/lists.h" #include "lib/resource.h"
I would very much like to avoid including anything in asm/... and especially using HZ. The proper way to get HZ is to call sysconf(_SC_CLK_TCK). This should be portable to all POSIX systems. Anyway, is there any problem in using time() as previously, but detect timewarps? Have a nice fortnight -- Martin `MJ' Mares <mj@ucw.cz> http://mj.ucw.cz/ Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth Don't take life too seriously -- you'll never get out of it alive.