diff --git a/tools/tools/syscall_timing/Makefile b/tools/tools/syscall_timing/Makefile index 6d87bde582c..2b4accaa247 100644 --- a/tools/tools/syscall_timing/Makefile +++ b/tools/tools/syscall_timing/Makefile @@ -6,7 +6,7 @@ PROG= syscall_timing CFLAGS+= -static -O MAN= -LIBADD= pthread +#LIBADD= pthread WARNS= 6 diff --git a/tools/tools/syscall_timing/syscall_timing.c b/tools/tools/syscall_timing/syscall_timing.c index d64e7a6a0f7..c33ed0ddf66 100644 --- a/tools/tools/syscall_timing/syscall_timing.c +++ b/tools/tools/syscall_timing/syscall_timing.c @@ -44,7 +44,9 @@ #include #include #include +#ifdef WITH_PTHREAD #include +#endif #include #include #include @@ -319,6 +321,7 @@ test_pipeping(uintmax_t num, uintmax_t int_arg, const char *path __unused) return (i); } +#ifdef WITH_PTHREAD struct pipepingtd_ctx { int fd; uintmax_t int_arg; @@ -375,6 +378,7 @@ test_pipepingtd(uintmax_t num, uintmax_t int_arg, const char *path __unused) return (i); } +#endif /* WITH_PTHREAD */ static uintmax_t test_socket_stream(uintmax_t num, uintmax_t int_arg, const char *path __unused) @@ -827,6 +831,7 @@ static const struct test tests[] = { { "pipeping_10000", test_pipeping, .t_flags = 0, .t_int = 10000 }, { "pipeping_100000", test_pipeping, .t_flags = 0, .t_int = 100000 }, { "pipeping_1000000", test_pipeping, .t_flags = 0, .t_int = 1000000 }, +#ifdef WITH_PTHREAD { "pipepingtd_1", test_pipepingtd, .t_flags = 0, .t_int = 1 }, { "pipepingtd_10", test_pipepingtd, .t_flags = 0, .t_int = 10 }, { "pipepingtd_100", test_pipepingtd, .t_flags = 0, .t_int = 100 }, @@ -834,6 +839,7 @@ static const struct test tests[] = { { "pipepingtd_10000", test_pipepingtd, .t_flags = 0, .t_int = 10000 }, { "pipepingtd_100000", test_pipepingtd, .t_flags = 0, .t_int = 100000 }, { "pipepingtd_1000000", test_pipepingtd, .t_flags = 0, .t_int = 1000000 }, +#endif { "gettimeofday", test_gettimeofday, .t_flags = 0 }, { "getpriority", test_getpriority, .t_flags = 0 }, { "getprogname", test_getprogname, .t_flags = 0 },