diff options
| author | Maho Nakata <maho@FreeBSD.org> | 2006-09-02 12:12:44 +0000 |
|---|---|---|
| committer | Maho Nakata <maho@FreeBSD.org> | 2006-09-02 12:12:44 +0000 |
| commit | 15e0b7be9719f289b6ab3863633170e61d06e75c (patch) | |
| tree | 2d0101338f2fcc3bed7512157c15ac155cd32dc1 /math/lp_solve/files/patch-shared+commonlib.c | |
| parent | 35fe0b1b2085de5cba0a1c1397d5a5e0a584b09e (diff) | |
* Install more header files.
* get rid of parts that link against libcompat
* bump PORTREVISION
Diffstat (limited to 'math/lp_solve/files/patch-shared+commonlib.c')
| -rw-r--r-- | math/lp_solve/files/patch-shared+commonlib.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/math/lp_solve/files/patch-shared+commonlib.c b/math/lp_solve/files/patch-shared+commonlib.c new file mode 100644 index 000000000000..978f0e153e73 --- /dev/null +++ b/math/lp_solve/files/patch-shared+commonlib.c @@ -0,0 +1,27 @@ +--- shared/commonlib.c.orig Sat Mar 18 07:16:42 2006 ++++ shared/commonlib.c Sat Sep 2 21:01:39 2006 +@@ -4,7 +4,7 @@ + #ifdef INTEGERTIME + # include <time.h> + #else +-# include <sys/timeb.h> ++# include <sys/time.h> + #endif + + #include <stdlib.h> +@@ -673,10 +673,12 @@ + #elif defined CLOCKTIME + return((double)clock()/CLOCKS_PER_SEC /* CLK_TCK */); + #else +- struct timeb buf; ++ struct timeval tv; ++ struct timezone tz; ++ ++ gettimeofday(&tv, &tz); ++ return((double)tv.tv_sec+((double)tv.tv_usec)/1000.0); + +- ftime(&buf); +- return((double)buf.time+((double) buf.millitm)/1000.0); + #endif + } + |
