我正在修改sched_ule.c在freebsd内核中。要打印调试消息,我正在使用 syslog功能。但在编译过程中,我们收到以下错误:
/usr/src/sys/kern/sched_ule.c:731: warning: implicit declaration of
function 'syslog' /usr/src/sys/kern/sched_ule.c:731: warning: nested
extern declaration of 'syslog' [-Wnested-externs]
*** Error code 1 Stop in /usr/obj/usr/src/sys/MYKERNEL.
*** Error code 1 Stop in /usr/src.
*** Error code 1 Stop in /usr/src.
我还包含了以下 header : syslog.h、stdarg.h 并尝试在没有它们的情况下进行编译。
最佳答案
关于freebsd - freebsd 内核嵌套 extern 声明警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15255503/