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.git


The following commit(s) were added to refs/heads/master by this push:
     new 5dfb271  include: Add __socklen_t_defined for compatibility to other C 
libraries
5dfb271 is described below

commit 5dfb2713f64b88dc477354b779dc477848f6afe7
Author: Gustavo Henrique Nihei <[email protected]>
AuthorDate: Tue Nov 9 09:02:24 2021 -0300

    include: Add __socklen_t_defined for compatibility to other C libraries
    
    Signed-off-by: Gustavo Henrique Nihei <[email protected]>
---
 include/sys/types.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/sys/types.h b/include/sys/types.h
index f1f655d..4ae38c5 100644
--- a/include/sys/types.h
+++ b/include/sys/types.h
@@ -219,6 +219,7 @@ typedef int16_t      blksize_t;
 /* Network related */
 
 typedef unsigned int socklen_t;
+#define __socklen_t_defined
 typedef uint16_t     sa_family_t;
 
 /* Used for system times in clock ticks. This type is the natural width of

Reply via email to