Unity-Technologies / qstat

New official qstat repository
Artistic License 2.0
121 stars 33 forks source link

OpenBSD fixes #70

Closed tdm4 closed 6 years ago

tdm4 commented 6 years ago

Hi, I've got some OpenBSD fixes here. OpenBSD has never had strnstr() (it's in the FreeBSD API not OpenBSD), and added an extra define so that ventrilo.c uses arc4random() instead of random().

I'm also in the midst of updating the OpenBSD port for games/qstat so if these changes help, it's be great to see them get merged in.

Thanks for taking over the qstat repo and continuing to make it available for us old-school gamers!

-Tom

tdm4 commented 6 years ago

Going to close this PR. I'm not sure changing random() to arc4random() is actually what is intended with the ventrilo handshake. I'll submit a separate PR for the strnstr().