From a9ff36b2a41574be3adf9b60256182adfb108f6d Mon Sep 17 00:00:00 2001 From: meijian Date: Tue, 2 Jul 2024 14:32:41 +0800 Subject: [PATCH] nng/clock: fix the timer clock is affected by UTC update bug Signed-off-by: meijian --- netutils/nng/nng_porting_for_nuttx.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/netutils/nng/nng_porting_for_nuttx.patch b/netutils/nng/nng_porting_for_nuttx.patch index ac49d08f3..cc5ee6989 100644 --- a/netutils/nng/nng_porting_for_nuttx.patch +++ b/netutils/nng/nng_porting_for_nuttx.patch @@ -108,6 +108,18 @@ index 418bfb15..53905bf5 100644 { .scheme = NULL, }, +diff --git nng/src/platform/posix/posix_config.h nng/src/platform/posix/posix_config.h +index 2abe51b4..80a7fdd8 100644 +--- nng/src/platform/posix/posix_config.h ++++ nng/src/platform/posix/posix_config.h +@@ -61,7 +61,6 @@ + #endif + #endif + +-#define NNG_USE_CLOCKID CLOCK_REALTIME + #ifndef CLOCK_REALTIME + #define NNG_USE_GETTIMEOFDAY + #elif !defined(NNG_USE_CLOCKID) diff --git nng/src/platform/posix/posix_file.c nng/src/platform/posix/posix_file.c index d5fb5016..11ad4012 100644 --- nng/src/platform/posix/posix_file.c