summaryrefslogtreecommitdiff
path: root/src/process_runs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process_runs.c')
-rw-r--r--src/process_runs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process_runs.c b/src/process_runs.c
index bf4e919..d8513a5 100644
--- a/src/process_runs.c
+++ b/src/process_runs.c
@@ -39,7 +39,7 @@ bool process_runs(const char *path) {
(void)read(fd, pidbuf, sizeof(pidbuf));
(void)close(fd);
-#ifdef LINUX
+#if defined(LINUX) || defined(__GNU__) || defined(__GLIBC__)
struct stat statbuf;
char procbuf[512];
(void)snprintf(procbuf, sizeof(procbuf), "/proc/%ld", strtol(pidbuf, NULL, 10));