forked from pool/atftp
9f1ef11be3
rebase patches, remove 'ghost /var/run/atftp' from spec OBS-URL: https://build.opensuse.org/request/show/206687 OBS-URL: https://build.opensuse.org/package/show/network/atftp?expand=0&rev=20
16 lines
394 B
Diff
16 lines
394 B
Diff
Index: stats.c
|
|
===================================================================
|
|
--- stats.c.orig
|
|
+++ stats.c
|
|
@@ -142,6 +142,10 @@ void stats_thread_usage_locked(void)
|
|
pthread_mutex_unlock(&s_stats.mutex);
|
|
}
|
|
|
|
+#ifndef CLK_TCK
|
|
+#define CLK_TCK CLOCKS_PER_SEC
|
|
+#endif
|
|
+
|
|
/*
|
|
* Called at the end of the main thread, when no other threads are
|
|
* running, to print the final statistics.
|