From 046e83bec9ad3de739f4f488620969c883d373e5 Mon Sep 17 00:00:00 2001 From: chao an Date: Wed, 31 Aug 2022 22:52:57 +0800 Subject: [PATCH] examples/usrsocktest: fix build break MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit usrsocktest_wake_with_signal.c: In function ‘do_wake_test’: usrsocktest_wake_with_signal.c:553:16: error: ‘USEC_PER_MSEC’ undeclared (first use in this function) 553 | usleep(100 * USEC_PER_MSEC); /* Let worker thread proceed to blocking | ^~~~~~~~~~~~~ Signed-off-by: chao an --- examples/usrsocktest/usrsocktest_wake_with_signal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/usrsocktest/usrsocktest_wake_with_signal.c b/examples/usrsocktest/usrsocktest_wake_with_signal.c index 438ed934d..7e49aa28a 100644 --- a/examples/usrsocktest/usrsocktest_wake_with_signal.c +++ b/examples/usrsocktest/usrsocktest_wake_with_signal.c @@ -29,6 +29,8 @@ #include #include +#include + #include "defines.h" /****************************************************************************