[shotwell/wip/stable/new-vala: 2/4] Prevent compile issue with VALA < 0.40



commit c2ddfe2a90f6af54fdcbe980999e6024f7b764e6
Author: Jens Georg <mail jensge org>
Date:   Sun Apr 21 15:02:55 2019 +0200

    Prevent compile issue with VALA < 0.40

 src/VideoSupport.vala | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/VideoSupport.vala b/src/VideoSupport.vala
index 857a9011..533dfe67 100644
--- a/src/VideoSupport.vala
+++ b/src/VideoSupport.vala
@@ -232,7 +232,11 @@ public class VideoReader {
         debug("Thumbnailer timer called");
         if (thumbnailer_pid != 0) {
             debug("Killing thumbnailer process: %d", thumbnailer_pid);
+#if VALA_0_40
+            Posix.kill(thumbnailer_pid, Posix.Signal.KILL);
+#else
             Posix.kill(thumbnailer_pid, Posix.SIGKILL);
+#endif
         }
         return false; // Don't call again.
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]