Sync with the new ipfw3 version.
[ipfw.git] / dummynet2 / include / sys / taskqueue.h
index f11d286..43efdd5 100644 (file)
@@ -4,6 +4,15 @@
 /*
  * Remap taskqueue to direct calls
  */
+
+#ifdef _WIN32
+struct task {
+       void (*func)(void*, int);
+};
+#define taskqueue_enqueue(tq, ta)      (ta)->func(NULL,1)
+#define TASK_INIT(a,b,c,d) do {                                \
+       (a)->func = (c); } while (0)
+#else
 struct task {
        void (*func)(void);
 };
@@ -11,6 +20,7 @@ struct task {
 #define TASK_INIT(a,b,c,d) do {                                \
        (a)->func = (void (*)(void))c; } while (0)
 
+#endif
 #define taskqueue_create_fast(_a, _b, _c, _d)  NULL
 #define taskqueue_start_threads(_a, _b, _c, _d)