refactor(libkernel): keep recvmsg's descriptor-passing state out of Windows builds

Windows never takes the SCM_RIGHTS path, so the received descriptors and
the truncation flag are declared only where they are used.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
milescovielloandClaude Opus 5.5 committed 2026-10-21 18:43:14 +00:00
1 parent 2f196610dd
commit 896e55c2d8
1 file changed
+1 -1
+1 -1
View File
@@ -1656,9 +1656,9 @@ std::int64_t APS5_VABI recvmsg_nid_postfix(int descriptor, GuestMsghdr* message,
socklen_t size = sizeof(native);
if (const int waited = WaitForTransfer(*socket, false, flags)) return Fail(waited);
std::int64_t received = 0;
#ifndef _WIN32
std::vector<int> passed;
bool controlTruncated = false;
#ifndef _WIN32
if (passing) {
std::vector<char> control(CMSG_SPACE(MostPassedDescriptors * sizeof(int)));
iovec vector{buffer.data(), buffer.size()};