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



commit be779eb1b0b26453b2f952a8dcf07c5ee2894a11
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]