Fix build on 32-bit arch.

This commit is contained in:
Hiroki Sato 2019-03-03 01:19:32 +00:00
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

View file

@ -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>

View 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) {