Default reported OS to Unix if not Linux (e.g. FreeBSD)#3699
Conversation
ann0see
left a comment
There was a problem hiding this comment.
Looks sensible. Not tested but it looks trivial.
pljones
left a comment
There was a problem hiding this comment.
Note that this introduces for the first time the possibility of GetOperatingSystem() returning OT_UNIX.
Is there anywhere this will cause problems (i.e. where the other enum values are handled and OT_UNIX has been overlooked)?
No, the only places where the |
Short description of changes
Make default reported OS be Unix (
OT_UNIXwas already defined, so is not new here) if the build is not Windows, Mac, iOS, Android or Linux. For example FreeBSD.CHANGELOG: Server: Report OS as Unix if not Windows, Mac, iOS, Android or Linux.
Context: Fixes an issue?
When recently testing a FreeBSD build, it was reporting its OS as Linux. It should say the more generic Unix.
Does this change need documentation? What needs to be documented and how?
Probably not. The OS is not displayed anywhere within Jamulus, so this only affects Jamulus Explorer and similar sites.
Status of this Pull Request
Ready and tested on both Linux and FreeBSD
What is missing until this pull request can be merged?
Only review
Checklist