You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/02/03 02:33:51 UTC

[incubator-nuttx] branch master updated: net/igmp/igmp.h: include to fix build break

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 5f7a797  net/igmp/igmp.h: include <nuttx/semaphore.h> to fix build break
5f7a797 is described below

commit 5f7a797e89a48ad0f633f740970abd4259858d31
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Mon Feb 3 10:07:32 2020 +0800

    net/igmp/igmp.h: include <nuttx/semaphore.h> to fix build break
    
    Build nucleo-144/f767-netnsh fail with below error:
    In file included from igmp/igmp_initialize.c:54:
    ./igmp/igmp.h:130:3: error: unknown type name 'sem_t'
      130 |   sem_t                sem;     /* Used to wait for message transmission */
          |   ^~~~~
    make[1]: *** [igmp_initialize.o] Error 1
    
    Signed-off-by: liuhaitao <li...@xiaomi.com>
---
 net/igmp/igmp.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/igmp/igmp.h b/net/igmp/igmp.h
index e97352b..e2f9479 100644
--- a/net/igmp/igmp.h
+++ b/net/igmp/igmp.h
@@ -77,6 +77,7 @@
 
 #include <sys/types.h>
 
+#include <nuttx/semaphore.h>
 #include <nuttx/wqueue.h>
 #include <nuttx/net/ip.h>