diff options
| author | Hiroki Sato <hrs@FreeBSD.org> | 2019-03-03 01:19:32 +0000 |
|---|---|---|
| committer | Hiroki Sato <hrs@FreeBSD.org> | 2019-03-03 01:19:32 +0000 |
| commit | 0d30f133acf14017c28b4730f706146502d6352d (patch) | |
| tree | 0fe4a83c71082890d4b7d8c325481c5cd260c643 /graphics/klatexformula/files/patch-src-main.cpp | |
| parent | lang/rust-nightly: update to 1.34.0.20190303 (diff) | |
Fix build on 32-bit arch.
Diffstat (limited to 'graphics/klatexformula/files/patch-src-main.cpp')
| -rw-r--r-- | graphics/klatexformula/files/patch-src-main.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/klatexformula/files/patch-src-main.cpp b/graphics/klatexformula/files/patch-src-main.cpp new file mode 100644 index 000000000000..6bdb562a2116 --- /dev/null +++ b/graphics/klatexformula/files/patch-src-main.cpp @@ -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) { |
