From 0bbadb0a2f07033a6fc3d3290fc53b0f0772956c Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Thu, 22 Oct 1998 01:59:50 +0000 Subject: [PATCH] portability --- bin/tests/task_test.c | 30 +++++++++++++++--------------- lib/isc/timer.c | 2 ++ lib/isc/unix/time.c | 2 ++ 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/bin/tests/task_test.c b/bin/tests/task_test.c index 3c81906a98..18b767d060 100644 --- a/bin/tests/task_test.c +++ b/bin/tests/task_test.c @@ -95,49 +95,49 @@ main(int argc, char *argv[]) { printf("task 2 = %p\n", t2); sleep(2); - event = isc_event_allocate(mctx, main, 1, my_callback, "1", + event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1", sizeof *event); isc_task_send(t1, &event); - event = isc_event_allocate(mctx, main, 1, my_callback, "1", + event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1", sizeof *event); isc_task_send(t1, &event); - event = isc_event_allocate(mctx, main, 1, my_callback, "1", + event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1", sizeof *event); isc_task_send(t1, &event); - event = isc_event_allocate(mctx, main, 1, my_callback, "1", + event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1", sizeof *event); isc_task_send(t1, &event); - event = isc_event_allocate(mctx, main, 1, my_callback, "1", + event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1", sizeof *event); isc_task_send(t1, &event); - event = isc_event_allocate(mctx, main, 1, my_callback, "1", + event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1", sizeof *event); isc_task_send(t1, &event); - event = isc_event_allocate(mctx, main, 1, my_callback, "1", + event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1", sizeof *event); isc_task_send(t1, &event); - event = isc_event_allocate(mctx, main, 1, my_callback, "1", + event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1", sizeof *event); isc_task_send(t1, &event); - event = isc_event_allocate(mctx, main, 1, my_callback, "1", + event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "1", sizeof *event); isc_task_send(t1, &event); - event = isc_event_allocate(mctx, main, 1, my_callback, "2", + event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "2", sizeof *event); isc_task_send(t2, &event); - event = isc_event_allocate(mctx, main, 1, my_callback, "3", + event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "3", sizeof *event); isc_task_send(t3, &event); - event = isc_event_allocate(mctx, main, 1, my_callback, "4", + event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "4", sizeof *event); isc_task_send(t4, &event); - event = isc_event_allocate(mctx, main, 1, my_callback, "2", + event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "2", sizeof *event); isc_task_send(t2, &event); - event = isc_event_allocate(mctx, main, 1, my_callback, "3", + event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "3", sizeof *event); isc_task_send(t3, &event); - event = isc_event_allocate(mctx, main, 1, my_callback, "4", + event = isc_event_allocate(mctx, (void *)main, 1, my_callback, "4", sizeof *event); isc_task_send(t4, &event); isc_task_purge(t3, NULL, 0); diff --git a/lib/isc/timer.c b/lib/isc/timer.c index dd7ae21d78..f68ab46881 100644 --- a/lib/isc/timer.c +++ b/lib/isc/timer.c @@ -1,4 +1,6 @@ +#include "attribute.h" + #include #include diff --git a/lib/isc/unix/time.c b/lib/isc/unix/time.c index 81d2d42b88..4dfac9e249 100644 --- a/lib/isc/unix/time.c +++ b/lib/isc/unix/time.c @@ -1,4 +1,6 @@ +#include + #include #include #include