Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 2fbf96d

Browse files
committed
Further 64bit signature fixes
1 parent f067be3 commit 2fbf96d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Unix.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@ unsafe class UnixSocket
225225
//static extern int vmsplice (int fd, IOVector* iov, uint nr_segs, uint flags);
226226

227227
[DllImport ("libc", SetLastError=true)]
228-
public static extern int recvmsg (int s, IntPtr msg, int flags);
228+
public static extern SSizeT recvmsg (int s, IntPtr msg, int flags);
229229

230230
[DllImport ("libc", SetLastError=true)]
231-
public static extern int sendmsg (int s, IntPtr msg, int flags);
231+
public static extern SSizeT sendmsg (int s, IntPtr msg, int flags);
232232

233233
public int Handle;
234234
bool ownsHandle = false;

src/UnixNativeTransport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ unsafe void WriteBsdCred ()
6666
cm.hdr.cmsg_level = 0xffff; //SOL_SOCKET
6767
cm.hdr.cmsg_type = 0x03; //SCM_CREDS
6868

69-
int written = UnixSocket.sendmsg (socket.Handle, (IntPtr)(&msg), 0);
69+
int written = (int)UnixSocket.sendmsg (socket.Handle, (IntPtr)(&msg), 0);
7070
if (written < 0)
7171
throw UnixError.GetLastUnixException ();
7272

0 commit comments

Comments
 (0)