Skip to content

Commit

Permalink
fix: macOS compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
ncvicchi committed Dec 3, 2024
1 parent 52e996c commit 4bd87b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/common/version_op/src/version_op.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@
#include "regex_op.h"
#include "binaries_op.h"

#ifndef WIN32
#include <sys/utsname.h>
#endif

#ifdef __linux__
#include <sched.h>
#include <regex.h>
#include <sys/utsname.h>
#elif defined(__MACH__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#include <sys/sysctl.h>
#endif
Expand Down

0 comments on commit 4bd87b3

Please sign in to comment.