Neeraj Pal wrote: > > In file included from /usr/src/sys/kern/sys_test.c:4: > /usr/src/sys/sys/syscallargs.h:153:13: error: unknown type name > 'socklen_t'; did you mean '__socklen_t'?
Your includes are in the wrong or some are missing. I think you should start by adding code to a file that already compiles, that's much less trouble.