summaryrefslogtreecommitdiff
path: root/math/lp_solve/files/patch-shared+commonlib.c
diff options
context:
space:
mode:
authorEric Camachat <eric@camachat.org>2025-02-05 17:05:42 +0100
committerRobert Clausecker <fuz@FreeBSD.org>2025-02-11 14:26:12 +0100
commitbd63a46daaeeb4f4cabb87892555f180a6e44fa9 (patch)
tree40c46dcb9f54494f015c2b42308a66adc766c7b5 /math/lp_solve/files/patch-shared+commonlib.c
parentsysutils/podman-compose: add port (diff)
math/lp_solve: honor CFLAGS
Honor CFLAGS when compiling platform.c. PR: 270851 MFH: 2025Q1 Approved by: mayo@oyam.ca (maintainer timeout)
Diffstat (limited to 'math/lp_solve/files/patch-shared+commonlib.c')
-rw-r--r--math/lp_solve/files/patch-shared+commonlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/math/lp_solve/files/patch-shared+commonlib.c b/math/lp_solve/files/patch-shared+commonlib.c
index 7f6322a4ac33..2d21d13829e1 100644
--- a/math/lp_solve/files/patch-shared+commonlib.c
+++ b/math/lp_solve/files/patch-shared+commonlib.c
@@ -16,12 +16,12 @@
- struct timeb buf;
+ struct timeval tv;
+ struct timezone tz;
-+
-+ gettimeofday(&tv, &tz);
-+ return((double)tv.tv_sec+((double)tv.tv_usec)/1000000.0);
- ftime(&buf);
- return((double)buf.time+((double) buf.millitm)/1000.0);
++ gettimeofday(&tv, &tz);
++ return((double)tv.tv_sec+((double)tv.tv_usec)/1000000.0);
++
#endif
}