Skip to content

Commit 2b76c34

Browse files
pinotreesaghul
authored andcommitted
Implement os.exePath on GNU/Hurd
There is a Linux-like procfs that provides /proc/self/exe, so use the Linux implementation of js_exepath() also on GNU/Hurd.
1 parent a9512d4 commit 2b76c34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,7 @@ int js_exepath(char *buffer, size_t *size) {
12821282

12831283
return 0;
12841284
}
1285-
#elif defined(__linux__)
1285+
#elif defined(__linux__) || defined(__GNU__)
12861286
int js_exepath(char *buffer, size_t *size) {
12871287
ssize_t n;
12881288

0 commit comments

Comments
 (0)