From: Rico Tzschichholz Date: Fri, 6 Mar 2020 21:47:54 +0000 (+0100) Subject: linux: Don't depend on GLib.Time when using POSIX profile X-Git-Tag: 0.48.1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be779eb1b0b26453b2f952a8dcf07c5ee2894a11;p=thirdparty%2Fvala.git linux: Don't depend on GLib.Time when using POSIX profile --- 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;