--- libaitsched/example/test_time.c 2012/05/31 15:09:18 1.3.2.2 +++ libaitsched/example/test_time.c 2012/05/31 21:51:28 1.3.2.3 @@ -86,7 +86,9 @@ main(int argc, char **argv) // struct timespec p = { 0, 10000000 }; int f = 0; struct sigaction sa; +#ifdef EVFILT_USER sched_task_t *t[4]; +#endif sa.sa_handler = sig; sigemptyset(&sa.sa_mask); @@ -149,6 +151,7 @@ main(int argc, char **argv) return 5; } +#ifdef EVFILT_USER if (!(t[0] = schedUser(root, user, NULL, 42, 0, 0))) { printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); return 6; @@ -165,6 +168,7 @@ main(int argc, char **argv) printf("Error:: #%d - %s\n", sched_GetErrno(), sched_GetError()); return 6; } +#endif if (argc > 1) if (!schedProc(root, proc, NULL, atoi(argv[1]), 0, 0)) {