diff options
author | Roy Marples <roy@marples.name> | 2007-05-11 08:58:19 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-05-11 08:58:19 +0000 |
commit | 46cd245ee3b6bfc7e6a34de6d43e5930274bd37a (patch) | |
tree | d05d21bc6faca01b3f031039771050d87032a122 /src/librc.h | |
parent | 7cdd8d4a0e2a5ef44df37e7879cb726aac45826d (diff) |
Use clock MONOTONIC to timeout, not localtime, #177514
Diffstat (limited to 'src/librc.h')
-rw-r--r-- | src/librc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librc.h b/src/librc.h index 1661cea3..cbf26d95 100644 --- a/src/librc.h +++ b/src/librc.h @@ -15,6 +15,10 @@ #include <sys/utsname.h> #include <sys/wait.h> +#ifdef __linux__ +#include <sys/sysinfo.h> +#endif + #include <dirent.h> #include <errno.h> #include <fcntl.h> @@ -26,6 +30,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <time.h> #include <unistd.h> #if defined(__DragonFly__) || defined(__FreeBSD__) || \ |