[PATCH] Fix building eth_p_all demo with Mercury core

Vitaly Chikunov vt at altlinux.org
Thu Sep 24 04:58:28 CEST 2020


Error message:

In file included from eth_p_all.c:43:
/usr/include/xenomai/boilerplate/ancillaries.h:56:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__early_panic’
   56 | void __noreturn __early_panic(const char *fn,
      |                 ^~~~~~~~~~~~~
/usr/include/xenomai/boilerplate/ancillaries.h:59:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘___panic’
   59 | void __noreturn ___panic(const char *fn,
      |                 ^~~~~~~~
/usr/include/xenomai/boilerplate/ancillaries.h:63:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__panic’
   63 | void __noreturn __panic(const char *fn,
      |                 ^~~~~~~

Signed-off-by: Vitaly Chikunov <vt at altlinux.org>
---
 demo/posix/cobalt/eth_p_all.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/demo/posix/cobalt/eth_p_all.c b/demo/posix/cobalt/eth_p_all.c
index 91aef9fbd..ad4c54878 100644
--- a/demo/posix/cobalt/eth_p_all.c
+++ b/demo/posix/cobalt/eth_p_all.c
@@ -40,6 +40,7 @@
 #include <net/if.h>
 #include <arpa/inet.h>
 #include <netinet/ether.h>
+#include <boilerplate/compiler.h>
 #include <boilerplate/ancillaries.h>
 
 char buffer[10*1024];
-- 
2.21.0




More information about the Xenomai mailing list