mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Fix build on 32-bit arch.
This commit is contained in:
parent
79c2dadaa3
commit
0d30f133ac
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=494473
2 changed files with 14 additions and 1 deletions
|
@ -26,6 +26,6 @@ CMAKE_ARGS= -DKLF_INSTALL_POST_UPDATEMIMEDATABASE=off \
|
|||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} '/CMAKE_SYSTEM_NAME STREQUAL/s,Linux,FreeBSD,' \
|
||||
${WRKSRC}/src/klftools/CMakeLists.txt
|
||||
${WRKSRC}/src/klftools/CMakeLists.txt
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
13
graphics/klatexformula/files/patch-src-main.cpp
Normal file
13
graphics/klatexformula/files/patch-src-main.cpp
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- src/main.cpp.orig 2017-02-07 07:22:42 UTC
|
||||
+++ src/main.cpp
|
||||
@@ -272,8 +272,8 @@ void signal_act(int sig)
|
||||
fprintf(ftty, "Interrupt\n");
|
||||
if (ftty != stderr) fprintf(stderr, "*** Interrupt\n");
|
||||
|
||||
- static long last_sigint_time = 0;
|
||||
- long curtime;
|
||||
+ static time_t last_sigint_time = 0;
|
||||
+ time_t curtime;
|
||||
time(&curtime);
|
||||
bool isInsisted = (curtime - last_sigint_time <= 2); // re-pressed Ctrl-C after less than 2 secs
|
||||
if (!isInsisted && qApp != NULL) {
|
Loading…
Add table
Reference in a new issue