Commit 8181889
Fix Linux build: define _POSIX_C_SOURCE for clock_gettime
The diff_engine_core uses clock_gettime() and struct timespec for
timing, which require _POSIX_C_SOURCE=200809L on Linux when compiling
with -std=c99 (which disables GNU extensions).
The CMakeLists.txt already had this define, but it wasn't being applied
when building through setuptools. Added define_macros to the diffengine
Extension for Linux builds.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent ee4d329 commit 8181889
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
81 | 86 | | |
82 | 87 | | |
83 | 88 | | |
| 89 | + | |
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| |||
0 commit comments