Include <sys/syscall.h> in ServerBench.cpp for SYS_perf_event_open #44

Merged
andrew merged 1 commits from weaselbot/conflict-set:weaselbot/issue-41 into main 2026-06-22 20:01:54 +00:00
Member

Closes #41

Closes #41
andrew force-pushed weaselbot/issue-41 from 25307e9ed6 to 0417152a56 2026-06-21 23:29:55 +00:00 Compare
andrew added 1 commit 2026-06-22 18:09:19 +00:00
Include <sys/syscall.h> in ServerBench.cpp for SYS_perf_event_open
CI / release (arm64, ubuntu-latest-arm64) (pull_request) Successful in 3m23s
CI / pre-commit (pull_request) Successful in 2m6s
CI / test (-DCMAKE_BUILD_TYPE=Debug, debug) (pull_request) Successful in 3m36s
CI / test (-DCMAKE_CXX_FLAGS=-DUSE_64_BIT=1, 64-bit-versions) (pull_request) Successful in 3m28s
CI / test (-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++, gcc) (pull_request) Successful in 3m37s
CI / test (-DUSE_SIMD_FALLBACK=ON, simd-fallback) (pull_request) Successful in 3m27s
CI / release (amd64, ubuntu-latest-amd64) (pull_request) Successful in 4m51s
CI / coverage (pull_request) Successful in 3m38s
ff0722728a
`ServerBench.cpp` calls `syscall(SYS_perf_event_open, ...)` but did
not include `<sys/syscall.h>`, relying on `<unistd.h>` to transitively
provide the `SYS_*` constants. On toolchains where that does not happen,
the build fails with `SYS_perf_event_open` not declared.

Add the missing include so `server_bench` compiles on any platform that
provides `perf_event_open`.

Resolves weaselab/conflict-set#41.
andrew force-pushed weaselbot/issue-41 from 0417152a56 to ff0722728a 2026-06-22 18:09:19 +00:00 Compare
andrew merged commit d3c8f4afc6 into main 2026-06-22 20:01:54 +00:00
andrew deleted branch weaselbot/issue-41 2026-06-22 20:01:56 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weaselab/conflict-set#44