apple / swift-nio

Event-driven network application framework for high performance protocol servers & clients, non-blocking.
https://swiftpackageindex.com/apple/swift-nio/documentation
Apache License 2.0
7.85k stars 633 forks source link

Silence warning about missing include in macOS builds #2741

Closed gwynne closed 3 weeks ago

gwynne commented 3 weeks ago

Solves the spurious warning Umbrella header for module 'CNIOLinux' does not include header 'liburing_nio.h' which sometimes appears in macOS builds. Fixes #2740.

Motivation:

See #2740 for details.

Modifications:

The include of liburing_nio.h is moved outside the #ifdef __linux__ guard. (The header already has the same guard and is thus harmless when included on non-Linux platforms.)

Result:

The warning is no longer emitted in macOS builds.