I did, but i screwed up, i left the dollar sign at the beginning of the files... :/
Thanks, now it tries to compile, but fails:
unixsockets.inc(12,12) Error: Identifier not found "__cmsg_nxthdr"
unixsockets.pp(20) Fatal: There were 1 errors compiling module, stopping
This is caused by
rtl-extra/src/linux/unixsockets.inc:12:
function CMSG_NXTHDR(mhdr: Pmsghdr; cmsg: Pcmsghdr): Pcmsghdr;
begin
Result:=__cmsg_nxthdr(mhdr, cmsg);
end;
rtl-extra/src/linux/unixsockets.inc seems to be also buggy: it lacks this line:
function __cmsg_nxthdr(__mhdr:Pmsghdr; __cmsg:Pcmsghdr):Pcmsghdr;cdecl;external 'c' name '__cmsg_nxthdr';
If i include it, then it dies with this message:
unixsocketsh.inc(32,12) Error: Forward declaration not solved "CMSG_DATA(Pcmsghdr):^Byte;"
Which is caused, that
rtl-extra/src/linux/unixsocketsh.inc:32 says:
function CMSG_DATA(cmsg : pcmsghdr) : Pbyte;
while
rtl-extra/src/linux/unixsockets.inc:32 says:
function CMSG_DATA(cmsg: Pointer): PByte;
I am not sure, but i guess, the header is correct and the body is erroneous. After changing
cmsg: Pointer to
cmsg: Pcmsghdr, the unit finally compiles. Whew...
You were right. It was totally broken. Even the includes were. But now my unit finally compiles with using the bundled
unixsockets unit. Thank you very much for your help.

I think these fixes on the unit and the includes should be sent to FPC team.