Skip to content

Commit

Permalink
src: add unistd.h import if node posix credentials is defined
Browse files Browse the repository at this point in the history
usage comment
  • Loading branch information
JonasBa committed Sep 19, 2024
1 parent 653b965 commit fc8de8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/compile_cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
#include "path.h"
#include "zlib.h"

#ifdef NODE_IMPLEMENTS_POSIX_CREDENTIALS
#include <unistd.h> // getuid
#endif

namespace node {
std::string Uint32ToHex(uint32_t crc) {
std::string str;
Expand Down

0 comments on commit fc8de8f

Please sign in to comment.