Skip to content

Add DragonFlyBSD compile-time check for missing NOTE_NSECONDS#948

Merged
compnerd merged 1 commit into
swiftlang:mainfrom
somiljain2006:Keyevent-fix
Jul 8, 2026
Merged

Add DragonFlyBSD compile-time check for missing NOTE_NSECONDS#948
compnerd merged 1 commit into
swiftlang:mainfrom
somiljain2006:Keyevent-fix

Conversation

@somiljain2006

Copy link
Copy Markdown
Contributor

Fixes #933

Add a compile-time check for DragonFlyBSD timer support by detecting the absence of NOTE_NSECONDS. This prevents silently using nanosecond timer values with EVFILT_TIMER implementations that default to milliseconds and makes the required platform-specific adjustment explicit while remaining compatible with future DragonFlyBSD versions that may add NOTE_NSECONDS support.

@somiljain2006

Copy link
Copy Markdown
Contributor Author

@akmorrison @compnerd Can you review this pr?

@compnerd

compnerd commented Jul 8, 2026

Copy link
Copy Markdown
Member

@swift-ci please test

@compnerd
compnerd merged commit 95f592a into swiftlang:main Jul 8, 2026
2 checks passed
@somiljain2006
somiljain2006 deleted the Keyevent-fix branch July 9, 2026 03:13
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.

Handle the scenario when NOTE_NSECONDS is not available for the kevent backend.

3 participants