You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/09/01 06:58:17 UTC
[incubator-nuttx-apps] 03/06: examples/usrsocktest: fix build break
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 046e83bec9ad3de739f4f488620969c883d373e5
Author: chao an <an...@xiaomi.com>
AuthorDate: Wed Aug 31 22:52:57 2022 +0800
examples/usrsocktest: fix build break
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 <an...@xiaomi.com>
---
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 <errno.h>
#include <poll.h>
+#include <nuttx/clock.h>
+
#include "defines.h"
/****************************************************************************