fix #102 - add windows support

This commit is contained in:
Casey Lee
2020-02-25 09:22:59 -08:00
parent ead2ab4d69
commit 1d84ee0db1
188 changed files with 36275 additions and 44552 deletions

View File

@@ -17,7 +17,7 @@ func UnixCredentials(ucred *Ucred) []byte {
h.Level = SOL_SOCKET
h.Type = SCM_CREDENTIALS
h.SetLen(CmsgLen(SizeofUcred))
*(*Ucred)(h.data(0)) = *ucred
*((*Ucred)(cmsgData(h))) = *ucred
return b
}