Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
+#elif defined(__MINGW32__)
+
+static inline
+time_t bt_timegm(struct tm *tm)
+{
+ return _mkgmtime(tm);
+}
+
#else
#include <string.h>
#else
#include <string.h>
*/
#include <babeltrace/compat/time-internal.h>
*/
#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>
#include <babeltrace/graph/notification-iterator.h>
#include <babeltrace/graph/private-notification-iterator.h>
#include <babeltrace/graph/notification.h>
tm.tm_sec = bound->lazy_values.ss;
tm.tm_min = bound->lazy_values.mm;
tm.tm_hour = bound->lazy_values.hh;
tm.tm_sec = bound->lazy_values.ss;
tm.tm_min = bound->lazy_values.mm;
tm.tm_hour = bound->lazy_values.hh;
+ timeval = bt_timegm(&tm);
- printf_error("Failure in timegm(), incorrectly formatted %s timestamp",
+ printf_error("Failure in bt_timegm(), incorrectly formatted %s timestamp",
+#include <babeltrace/compat/utc-internal.h>
#include <babeltrace/plugin/plugin-dev.h>
#include <babeltrace/graph/component.h>
#include <babeltrace/graph/private-component.h>
#include <babeltrace/plugin/plugin-dev.h>
#include <babeltrace/graph/component.h>
#include <babeltrace/graph/private-component.h>
time_t result;
if (gmt) {
time_t result;
if (gmt) {
+ result = bt_timegm(&tm);
if (result < 0) {
return -1;
}
if (result < 0) {
return -1;
}
time_t result;
if (gmt) {
time_t result;
if (gmt) {
+ result = bt_timegm(&tm);
if (result < 0) {
return -1;
}
if (result < 0) {
return -1;
}
+ value = bt_timegm(&tm);
if (value < 0) {
return -1;
}
if (value < 0) {
return -1;
}
time_t result;
if (gmt) {
time_t result;
if (gmt) {
+ result = bt_timegm(&tm);
if (result < 0) {
return -1;
}
if (result < 0) {
return -1;
}