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

PR-URL: #54528
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
  • Loading branch information
JonasBa authored and targos committed Oct 4, 2024
1 parent 98ff615 commit 0876f78
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 0876f78

Please sign in to comment.