From b7361d16bb1b403615d923582685fd73635d66a2 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 4 May 2009 18:57:20 +0000 Subject: [PATCH] atftp: fix compile with eglibc SVN-Revision: 15601 --- net/atftp/patches/130-missing_include.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 net/atftp/patches/130-missing_include.patch diff --git a/net/atftp/patches/130-missing_include.patch b/net/atftp/patches/130-missing_include.patch new file mode 100644 index 0000000000..d607d0efa9 --- /dev/null +++ b/net/atftp/patches/130-missing_include.patch @@ -0,0 +1,21 @@ +--- a/stats.c ++++ b/stats.c +@@ -18,6 +18,7 @@ + + #include + #include ++#include + #include "tftp_def.h" + #include "stats.h" + #include "logger.h" +@@ -157,8 +158,8 @@ + + logger(LOG_INFO, " Load measurements:"); + logger(LOG_INFO, " User: %8.3fs Sys:%8.3fs", +- (double)(s_stats.tms.tms_utime) / CLK_TCK, +- (double)(s_stats.tms.tms_stime) / CLK_TCK); ++ (double)(s_stats.tms.tms_utime) / CLOCKS_PER_SEC, ++ (double)(s_stats.tms.tms_stime) / CLOCKS_PER_SEC); + logger(LOG_INFO, " Total:%8.3fs CPU:%8.3f%%", + (double)(tmp.tv_sec + tmp.tv_usec * 1e-6), + (double)(s_stats.tms.tms_utime + s_stats.tms.tms_stime) / -- 2.30.2