This is an automated email from the ASF dual-hosted git repository.
xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 34bce7e17cc boards/linum-stm32h753bi: Include unistd.h for usleep().
34bce7e17cc is described below
commit 34bce7e17cc9871d90d083e11eec10531448a276
Author: Marco Casaroli <[email protected]>
AuthorDate: Wed Oct 14 12:48:55 2026 +0200
boards/linum-stm32h753bi: Include unistd.h for usleep().
stm32_sdmmc.c calls usleep() but does not include unistd.h. It got the
declaration through stdio.h, which no longer includes nuttx/lib/lib.h.
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
---
boards/arm/stm32h7/linum-stm32h753bi/src/stm32_sdmmc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/boards/arm/stm32h7/linum-stm32h753bi/src/stm32_sdmmc.c
b/boards/arm/stm32h7/linum-stm32h753bi/src/stm32_sdmmc.c
index 47e9434e355..2e2802c46fe 100644
--- a/boards/arm/stm32h7/linum-stm32h753bi/src/stm32_sdmmc.c
+++ b/boards/arm/stm32h7/linum-stm32h753bi/src/stm32_sdmmc.c
@@ -28,6 +28,7 @@
#include <stdbool.h>
#include <stdio.h>
+#include <unistd.h>
#include <nuttx/debug.h>
#include <errno.h>