aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dsniff/09_sysconf_clocks.patch
blob: 54ba96dabd1b296daea3f663cdb61d5a8331ee67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Author: <kees@ubuntu.com>
Description: Fix FTBFS: ./sshow.c:226: error: 'CLK_TCK' undeclared.
--- a/sshow.c	2011-06-19 17:15:01.099999376 -0500
+++ b/sshow.c	2011-06-19 17:15:16.175999374 -0500
@@ -217,6 +217,7 @@
 {
 	clock_t delay;
 	int payload;
+    long CLK_TCK= sysconf(_SC_CLK_TCK);
 
 	delay = add_history(session, 0, cipher_size, plain_range);
 
@@ -265,6 +266,7 @@
 	clock_t delay;
 	int skip;
 	range string_range;
+    long CLK_TCK= sysconf(_SC_CLK_TCK);
 	
 	delay = add_history(session, 1, cipher_size, plain_range);