Skip to content

Add SOL_LOCAL to FreeBSD-like from sys/un.h #5168

Description

@Elizafox

Add SOL_LOCAL to FreeBSD-like targets (particularly *-unknown-freebsd) which allows setting local socket options with setsockopt() (0 also works in this capacity, but this is more clear).

This constant exists on macOS and the macOS target, and should be added to the FreeBSD-like definitions for consistency. FreeBSD added it for this reason.

This constant has been present since FreeBSD 13](freebsd/freebsd-src@6e0c8e1)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions