Landing: fcfb06e236d4
Project / Subsystem
gcc / gcc
Date
2026-08-28
Author
Iain Sandoe
Commit
fcfb06e236d4d1689a6caf8e5409b078262af481
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc
- patch_id
- —
- commit_hash
- fcfb06e236d4d1689a6caf8e5409b078262af481
- source_type
- github
- headline
- Define _DARWIN_C_SOURCE for Darwin testsuite cases
- tldr
- Ensures Darwin testsuite cases correctly access non-POSIX functions by defining _DARWIN_C_SOURCE.
- author
- Iain Sandoe
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • darwin
- • testsuite
- • glibc
- • portability
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-28T00:00:00.000Z
This commit defines _DARWIN_C_SOURCE in several Darwin testsuite files. This is necessary because glibc and Darwin’s libc have different interpretations of _POSIX_SOURCE, and defining _DARWIN_C_SOURCE allows access to functions outside the strict POSIX set on Darwin systems.