wutsocket: only link in networking layer if actually used

This commit is contained in:
fincs
2021-03-07 13:36:30 +01:00
parent c377cffe13
commit efc1bd47ff
4 changed files with 70 additions and 97 deletions

View File

@@ -7,7 +7,7 @@ socket(int domain,
{
int rc, fd, dev;
dev = FindDevice("sock:");
dev = FindDevice("soc:");
if (dev == -1) {
return -1;
}
@@ -22,7 +22,7 @@ socket(int domain,
__release_handle(fd);
return __wut_get_nsysnet_result(NULL, rc);
}
*(int *)__get_handle(fd)->fileStruct = rc;
return fd;
}