From ef7ca2706aa2e877c1be62d73554c6c79996d69a Mon Sep 17 00:00:00 2001 From: KHANH LUONG HONG DUY Date: Mon, 3 Aug 2020 10:22:58 +0700 Subject: dlt_user.c: fix the lack of DLT_NETWORK_TRACE_ENABLE definition Signed-off-by: KHANH LUONG HONG DUY --- src/lib/dlt_user.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c index e43c835..ae076ca 100644 --- a/src/lib/dlt_user.c +++ b/src/lib/dlt_user.c @@ -4631,12 +4631,14 @@ int dlt_start_threads() return -1; } +#ifdef DLT_NETWORK_TRACE_ENABLE /* Start the segmented thread */ if (pthread_create(&(dlt_user.dlt_segmented_nwt_handle), NULL, (void *)dlt_user_trace_network_segmented_thread, NULL)) { dlt_log(LOG_CRIT, "Can't start segmented thread!\n"); return -1; } +#endif return 0; } -- cgit v1.2.1