You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/06/03 14:28:10 UTC

[incubator-nuttx-apps] branch master updated: webclient.h: Avoid relying on indirect inclusion

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

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 5e3a3dae1 webclient.h: Avoid relying on indirect inclusion
5e3a3dae1 is described below

commit 5e3a3dae100002e648a437bc2f4b79dfc3da0fce
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Fri Jun 3 16:18:16 2022 +0900

    webclient.h: Avoid relying on indirect inclusion
    
    Include stdint.h for uint16_t explicitly.
    
    This was necessary when I was trying to build this natively
    on Ubuntu.  It seems some other headers happen to pull
    the uint16_t definition by luck on NuttX and macOS.
---
 include/netutils/webclient.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/netutils/webclient.h b/include/netutils/webclient.h
index 33a92cb8d..c17027499 100644
--- a/include/netutils/webclient.h
+++ b/include/netutils/webclient.h
@@ -49,6 +49,7 @@
 #include <nuttx/config.h>
 
 #include <stdbool.h>
+#include <stdint.h>
 #include <sys/types.h>
 
 /****************************************************************************