summaryrefslogtreecommitdiff
path: root/math/lp_solve/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'math/lp_solve/patches/patch-aa')
-rw-r--r--math/lp_solve/patches/patch-aa4
1 files changed, 2 insertions, 2 deletions
diff --git a/math/lp_solve/patches/patch-aa b/math/lp_solve/patches/patch-aa
index 14727af88b2..e4dafe8d214 100644
--- a/math/lp_solve/patches/patch-aa
+++ b/math/lp_solve/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.1.1.1 2010/10/16 15:35:08 wiz Exp $
+$NetBSD: patch-aa,v 1.2 2015/12/07 17:40:27 joerg Exp $
ftime() is deprecated, use gettimeofday() instead.
@@ -23,7 +23,7 @@ ftime() is deprecated, use gettimeofday() instead.
- ftime(&buf);
- return((double)buf.time+((double) buf.millitm)/1000.0);
+ gettimeofday(&buf, NULL);
-+ return((double)buf.tv_sec+((double) buf.tv_usec)/1000000.0);
++ return(buf.tv_sec + buf.tv_usec * 0.000001);
#endif
}