-getting ATS and transport to compile again (part of #3047)
[oweals/gnunet.git] / src / transport / plugin_transport_bluetooth.c
index 41500c34ea180d2aa853124a37cdd9c5ef3f8be8..a6b73c494c3091e2cc168b63a6aa0c7d0c07f166 100644 (file)
 #include "gnunet_fragmentation_lib.h"
 #include "gnunet_constants.h"
 
+#ifdef MINGW
+ #undef interface
+#endif
+
 #define LOG(kind,...) GNUNET_log_from (kind, "transport-bluetooth",__VA_ARGS__)
 
 #define PLUGIN_NAME "bluetooth"
@@ -694,7 +698,7 @@ session_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 
   session->timeout_task = GNUNET_SCHEDULER_NO_TASK;
   timeout = GNUNET_TIME_absolute_get_remaining (session->timeout);
-  if (0 == timeout.rel_value) 
+  if (0 == timeout.rel_value_us
   {
     free_session (session);
     return;
@@ -970,7 +974,7 @@ macendpoint_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 
   endpoint->timeout_task = GNUNET_SCHEDULER_NO_TASK;
   timeout = GNUNET_TIME_absolute_get_remaining (endpoint->timeout);
-  if (0 == timeout.rel_value) 
+  if (0 == timeout.rel_value_us
   {
     free_macendpoint (endpoint);
     return;