Skip to content

BSD support #3383

@3405691582

Description

@3405691582

Expected behavior

swift-nio builds and is usable on FreeBSD and OpenBSD, especially since FreeBSD is an official platform for Swift 6.2

Actual behavior

Various build failures, around lock types (pthread_mutex_t vs pthread_mutex_t?) and LITTLE_ENDIAN ifdefs in c_nio_sha1.c.

Steps to reproduce

  1. swift build

If possible, minimal yet complete reproducer code (or URL to code)

n/a

SwiftNIO version/commit hash

HEAD.

System & version information

Please provide at the very least your operating system and Swift version
information.

Swift 6.2.0, OpenBSD, but will also likely be a problem on FreeBSD.

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