3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-02-02 15:26:19 +00:00

linux_perf: only include unistd on Linux

This commit is contained in:
Natalia 2026-01-28 03:44:33 -08:00
parent fc2b7c317f
commit 6a6e5f0f54

View file

@ -23,12 +23,12 @@
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
USING_YOSYS_NAMESPACE
PRIVATE_NAMESPACE_BEGIN
#ifdef __linux__
#include <unistd.h>
struct LinuxPerf : public Pass {
LinuxPerf() : Pass("linux_perf", "turn linux perf recording off or on") {
internal();