aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/dsniff/09_sysconf_clocks.patch
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/dsniff/09_sysconf_clocks.patch')
-rw-r--r--unmaintained/dsniff/09_sysconf_clocks.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/unmaintained/dsniff/09_sysconf_clocks.patch b/unmaintained/dsniff/09_sysconf_clocks.patch
new file mode 100644
index 0000000000..54ba96dabd
--- /dev/null
+++ b/unmaintained/dsniff/09_sysconf_clocks.patch
@@ -0,0 +1,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);
+