Skip to content

Commit

Permalink
Add missing headers (#15075)
Browse files Browse the repository at this point in the history
Some systems must explicitly include these headers.
  • Loading branch information
pastalian authored Jan 24, 2024
1 parent 3ef48cb commit e8ad6ec
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions 3rdparty/pine/pine_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@
#include <sys/un.h>
#include <arpa/inet.h>
#include <poll.h>
#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
#include <unistd.h>
#endif
#endif

#ifdef _WIN32
constexpr SOCKET invalid_socket = INVALID_SOCKET;
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 e8ad6ec

Please sign in to comment.