문제

I am trying to change the kernel of the freebsd and I need to use the library list.h which is in the directory: /usr/src/lib/libc/include/isc. There are two lines in this file which make errors:

#include <assert.h>
#include <isc/assertion.h>

I could find the file assert.h and put it in the directory but I couldn't find assertion.h file on the net. Is there any link for downloading this library?

도움이 되었습니까?

해결책

You can't use /usr/src/lib/libc/include/isc in the kernel. This is part of the user space libc, same goes for assert.h.

You can use the sys/queue.h file if you need linked lists, see e.g. here

For assertions in the kernel, use the KASSERT() macro.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top