This is an automated email from the ASF dual-hosted git repository.

lupyuen pushed a commit to branch releases/12.7
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit f0db02740b4e504f0485524e7e0b4bac59966ea3
Author: dongjiuzhu1 <[email protected]>
AuthorDate: Wed Jun 5 16:36:38 2024 +0800

    system/uorb: fix compile warning
    
    1. add string.h becuase strlen in uORB.c
    2. add inttypes.h becuase PRIu64/... in sensor/*.c
    
    Signed-off-by: dongjiuzhu1 <[email protected]>
---
 system/uorb/uORB/uORB.c | 1 +
 system/uorb/uORB/uORB.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/system/uorb/uORB/uORB.c b/system/uorb/uORB/uORB.c
index 9d9f6ac75..d979277cb 100644
--- a/system/uorb/uORB/uORB.c
+++ b/system/uorb/uORB/uORB.c
@@ -28,6 +28,7 @@
 #include <sys/ioctl.h>
 #include <time.h>
 #include <unistd.h>
+#include <string.h>
 
 #include <nuttx/streams.h>
 #include <uORB/uORB.h>
diff --git a/system/uorb/uORB/uORB.h b/system/uorb/uORB/uORB.h
index aceccc014..e2434acea 100644
--- a/system/uorb/uORB/uORB.h
+++ b/system/uorb/uORB/uORB.h
@@ -36,6 +36,7 @@
 #include <stdint.h>
 #include <stdbool.h>
 #include <syslog.h>
+#include <inttypes.h>
 
 /****************************************************************************
  * Public Types

Reply via email to