git://git.onelab.eu
/
ipfw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sync with the new ipfw3 version.
[ipfw.git]
/
dummynet2
/
include
/
sys
/
taskqueue.h
diff --git
a/dummynet2/include/sys/taskqueue.h
b/dummynet2/include/sys/taskqueue.h
index
f11d286
..
43efdd5
100644
(file)
--- a/
dummynet2/include/sys/taskqueue.h
+++ b/
dummynet2/include/sys/taskqueue.h
@@
-4,6
+4,15
@@
/*
* Remap taskqueue to direct calls
*/
/*
* 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);
};
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)
#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)
#define taskqueue_create_fast(_a, _b, _c, _d) NULL
#define taskqueue_start_threads(_a, _b, _c, _d)