atftp: fix compile with eglibc
git-svn-id: svn://svn.openwrt.org/openwrt/packages@15601 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
44bcda96d2
commit
326a218b99
21
net/atftp/patches/130-missing_include.patch
Normal file
21
net/atftp/patches/130-missing_include.patch
Normal file
@ -0,0 +1,21 @@
|
||||
--- a/stats.c
|
||||
+++ b/stats.c
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
#include <limits.h>
|
||||
#include <string.h>
|
||||
+#include <time.h>
|
||||
#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) /
|
Loading…
x
Reference in New Issue
Block a user