[vala/0.46] linux: Don't depend on GLib.Time when using POSIX profile



commit 033b8c96430241b9017c47b832d338bf61332702
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Mar 6 22:47:54 2020 +0100

    linux: Don't depend on GLib.Time when using POSIX profile

 vapi/linux.vapi | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index 344f62463..77107d178 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -1248,7 +1248,11 @@ namespace Linux {
     public int adjtimex (Linux.timex buf);
 
     [CCode (cheader_filename = "time.h")]
+#if POSIX
+    public time_t timegm (Posix.tm t);
+#else
     public time_t timegm (GLib.Time t);
+#endif
 
     [CCode (cheader_filename = "time.h")]
     public const Posix.clockid_t CLOCK_MONOTONIC_RAW;


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