Skip to content

Commit 919af16

Browse files
JonasBalouwers
authored andcommitted
src: add unistd.h import if node posix credentials is defined
usage comment PR-URL: nodejs#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]>
1 parent ce7d45f commit 919af16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/compile_cache.cc

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
#include "path.h"
99
#include "zlib.h"
1010

11+
#ifdef NODE_IMPLEMENTS_POSIX_CREDENTIALS
12+
#include <unistd.h> // getuid
13+
#endif
14+
1115
namespace node {
1216
std::string Uint32ToHex(uint32_t crc) {
1317
std::string str;

0 commit comments

Comments
 (0)