Don't use HZ -- use sysconf(_SC_CLK_TCK)
This commit was genuinely broken at the time (not related to our build system): sysdeps/linux/Config.in "fileutils/Config.in" dosyasini kaynak gosteriyor ama bu dosya repoda hic var olmadi (2002-12-05 - 2003-02-15 arasi orijinal yazar hatasi, 3238ea167 ile duzeltildi)
No binary (build failed)
—
(log yok)
| @@ -16,6 +16,7 @@ | |
| #include <stdlib.h> | |
| #include <string.h> | |
| + | #include <unistd.h> |
| #include <arpa/inet.h> | |
| #include "utils.h" | |
| @@ -316,7 +317,7 @@ int __get_hz(void) | |
| } | |
| if (hz) | |
| return hz; | |
| - | return HZ; |
| + | return sysconf(_SC_CLK_TCK); |
| } | |
| const char *rt_addr_n2a(int af, int len, void *addr, char *buf, int buflen) | |