Port: Add timegm compat for mingw
[babeltrace.git] / plugins / utils / trimmer / iterator.c
index b726c695381d334614352c21d06b2c0ab240cf40..8241014d4fe678b9660ed40f053fcfd0207237e6 100644 (file)
@@ -27,6 +27,7 @@
  */
 
 #include <babeltrace/compat/time-internal.h>
+#include <babeltrace/compat/utc-internal.h>
 #include <babeltrace/graph/notification-iterator.h>
 #include <babeltrace/graph/private-notification-iterator.h>
 #include <babeltrace/graph/notification.h>
@@ -158,9 +159,9 @@ int update_lazy_bound(struct trimmer_bound *bound, const char *name,
                tm.tm_sec = bound->lazy_values.ss;
                tm.tm_min = bound->lazy_values.mm;
                tm.tm_hour = bound->lazy_values.hh;
-               timeval = timegm(&tm);
+               timeval = bt_timegm(&tm);
                if (timeval < 0) {
-                       printf_error("Failure in timegm(), incorrectly formatted %s timestamp",
+                       printf_error("Failure in bt_timegm(), incorrectly formatted %s timestamp",
                                        name);
                        goto error;
                }
This page took 0.024045 seconds and 4 git commands to generate.