Port: Add time.h compat for mingw
[babeltrace.git] / plugins / utils / trimmer / iterator.c
index dcff7ecaac8ee64a0fb7b8f780cb5658c2a67845..b726c695381d334614352c21d06b2c0ab240cf40 100644 (file)
@@ -26,6 +26,7 @@
  * SOFTWARE.
  */
 
+#include <babeltrace/compat/time-internal.h>
 #include <babeltrace/graph/notification-iterator.h>
 #include <babeltrace/graph/private-notification-iterator.h>
 #include <babeltrace/graph/notification.h>
@@ -150,8 +151,8 @@ int update_lazy_bound(struct trimmer_bound *bound, const char *name,
 
        if (bound->lazy_values.gmt) {
                /* Get day, month, year. */
-               if (!gmtime_r(&timeval, &tm)) {
-                       printf_error("Failure in gmtime_r()");
+               if (!bt_gmtime_r(&timeval, &tm)) {
+                       printf_error("Failure in bt_gmtime_r()");
                        goto error;
                }
                tm.tm_sec = bound->lazy_values.ss;
@@ -165,8 +166,8 @@ int update_lazy_bound(struct trimmer_bound *bound, const char *name,
                }
        } else {
                /* Get day, month, year. */
-               if (!localtime_r(&timeval, &tm)) {
-                       printf_error("Failure in localtime_r()");
+               if (!bt_localtime_r(&timeval, &tm)) {
+                       printf_error("Failure in bt_localtime_r()");
                        goto error;
                }
                tm.tm_sec = bound->lazy_values.ss;
This page took 0.023349 seconds and 4 git commands to generate.