Skip to content

Commit 0876f78

Browse files
JonasBatargos
authored andcommitted
src: add unistd.h import if node posix credentials is defined
usage comment PR-URL: #54528 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent 98ff615 commit 0876f78

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)