Skip to content

Commit

Permalink
Add missing headers
Browse files Browse the repository at this point in the history
Some systems must explicitly include these headers.
  • Loading branch information
pastalian committed Jan 21, 2024
1 parent 50fcec6 commit e4b15c0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion 3rdparty/pine/pine_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <sys/un.h>
#include <arpa/inet.h>
#include <poll.h>
#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
#ifndef _WIN32
#include <unistd.h>
#endif
#endif
Expand Down
1 change: 1 addition & 0 deletions Utilities/JITASM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "util/simd.hpp"

#ifdef __linux__
#include <unistd.h>
#define CAN_OVERCOMMIT
#endif

Expand Down
1 change: 1 addition & 0 deletions Utilities/Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ DYNAMIC_IMPORT_RENAME("Kernel32.dll", SetThreadDescriptionImport, "SetThreadDesc
#include <time.h>
#endif
#ifdef __linux__
#include <sys/syscall.h>
#include <sys/timerfd.h>
#include <unistd.h>
#endif
Expand Down

0 comments on commit e4b15c0

Please sign in to comment.