Commit 3ba84ee
guard _XOPEN_SOURCE defines against redefinition
Debian's ncurses pkg-config Cflags inject -D_XOPEN_SOURCE=600 on the
command line, which clashed with the hardcoded `#define _XOPEN_SOURCE 500`
in file.c and poolworker.c and failed the STRICT (-Werror) build with
-Wmacro-redefined. Wrap the defines in #ifndef so a stronger command-line
definition wins.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent feb7363 commit 3ba84ee
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
| 4 | + | |
3 | 5 | | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
0 commit comments