Skip to content

RtspServer include has long list of all operating systems in ifdef #4522

@gdt

Description

@gdt

Describe Your Environment

  • RtspServer master

Describe the bug

In src/net/Socket.h there are conditionals that look like

#if defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)

and for the most part this is about "windows" vs "mostly-POSIX operating system".

We have to patch these to add || defined(__NetBSD__). It would be less changes to maintain/merge if we didn't, and it would also mean that the next person on FooBSD or illumos won't need to patch either.

Discussion

I'm not sure if this can just be "if windows, then windows-version, else", but if so that would be great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions