mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-06 13:30:00 +00:00
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:
1 parent
2f196610dd
commit
896e55c2d8
1 file changed
+1
-1
@@ -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()};
|
||||
|
||||
Reference in new issue
Block a user