X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3status;a=blobdiff_plain;f=src%2Fprocess_runs.c;h=d8513a53044c64c9be354b5793dcb37c07e6746c;hp=bf4e919097c1f63a7f50c237d9f7c0028a6d7298;hb=e565e313f79c78eb1be27ce6ea789011105cf549;hpb=39b153fdd100088b567130a354824ef49b190009 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));