summaryrefslogtreecommitdiff
path: root/homebrew/owamp/patches.sh
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/owamp/patches.sh')
-rwxr-xr-xhomebrew/owamp/patches.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/homebrew/owamp/patches.sh b/homebrew/owamp/patches.sh
new file mode 100755
index 000000000..1afaaeaef
--- /dev/null
+++ b/homebrew/owamp/patches.sh
@@ -0,0 +1,18 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff -ur owamp-3.4/owamp/endpoint.c owamp-3.4.fixed/owamp/endpoint.c
+--- owamp-3.4/owamp/endpoint.c 2014-03-21 09:37:42.000000000 -0400
++++ owamp-3.4.fixed/owamp/endpoint.c 2014-11-26 07:50:11.000000000 -0500
+@@ -2188,6 +2188,11 @@
+ timespecsub((struct timespec*)&wake.it_value,&currtime);
+
+ wake.it_value.tv_usec /= 1000; /* convert nsec to usec */
++ while (wake.it_value.tv_usec >= 1000000) {
++ wake.it_value.tv_usec -= 1000000;
++ wake.it_value.tv_sec++;
++ }
++
+ tvalclear(&wake.it_interval);
+
+ /*
+EOF