Skip to content

tests: include <unistd.h> in test_perf.c - #44

Merged
byrnedj merged 1 commit into
intel:mainfrom
byrnedj:fix/test-perf-unistd
Oct 27, 2026
Merged

byrnedj merged 1 commit into
intel:mainfrom
byrnedj:fix/test-perf-unistd

Conversation

@byrnedj

@byrnedj byrnedj commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

test_perf.c uses fork(), _exit(), sysconf() and _SC_PAGESIZE
without including <unistd.h>. With GCC 12 the transitive include is
missing and the CMake build fails on dto-test-perf with
'_SC_PAGESIZE' undeclared. GCC 11.5 / Ubuntu 24.04 is unaffected.

test_perf.c uses fork(), _exit(), sysconf() and _SC_PAGESIZE without
including <unistd.h>. With GCC 12 the transitive include is missing and
the CMake build fails with "_SC_PAGESIZE undeclared".
@byrnedj
byrnedj merged commit 2d037e6 into intel:main Oct 27, 2026
1 check passed
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.

1 participant