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

Lines changed: 4 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy