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

Closed
weaselbot wants to merge 2 commits from weaselbot/issue-41 into main
Owner

Resolves weaselab/conflict-set#41.

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. `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`.
andrew added 2 commits 2026-06-21 23:29:53 +00:00
Drops the build-image job and the private registry dependency entirely.
Each job now installs only the packages it needs, caching /var/cache/apt/archives
keyed on the workflow file and ~/.cache/pre-commit keyed on .pre-commit-config.yaml.
`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 25307e9ed6 to 0417152a56 2026-06-21 23:29:53 +00:00 Compare
andrew closed this pull request 2026-06-22 00:58:19 +00:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weaselbot/conflict-set#2