Skip to content

Add FreeBSD platform detection to sentry.h#1221

Closed
mq1n wants to merge 1 commit intogetsentry:masterfrom
mq1n:patch-1
Closed

Add FreeBSD platform detection to sentry.h#1221
mq1n wants to merge 1 commit intogetsentry:masterfrom
mq1n:patch-1

Conversation

@mq1n
Copy link

@mq1n mq1n commented Apr 30, 2025

Extend platform detection logic to recognize FreeBSD as a supported platform.

Define SENTRY_PLATFORM_FREEBSD and SENTRY_PLATFORM_UNIX macros when compiling on FreeBSD. It's sufficient for the overall build to work without any additional modifications to the cpp files as FreeBSD is compatible with the existing Unix platform code.

Extend platform detection logic to recognize FreeBSD as a supported platform.

Define SENTRY_PLATFORM_FREEBSD and SENTRY_PLATFORM_UNIX macros when compiling on FreeBSD. It's sufficient for the overall build to work without any additional modifications to the cpp files as FreeBSD is compatible with the existing Unix platform code.
@supervacuus
Copy link
Collaborator

Hi @mq1n. Can you explain what you want to achieve with these changes? I detailed the changes for FreeBSD to become a community-supported platform (support from Sentry would at least require the tests to run in CI) for the Native SDK: #1113 (comment)

By just adding a marker for FreeBSD and making it a UNIX, a considerable part of the Native SDK features will not work.

@supervacuus
Copy link
Collaborator

Closing due to inactivity. Please feel free to reopen at any time if you like.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants