]> git.sur5r.net Git - i3/i3status/blobdiff - src/process_runs.c
Implemented a ddate-module
[i3/i3status] / src / process_runs.c
index 5e13de7f62f686ac9923db7818346a3e414dde00..d8513a53044c64c9be354b5793dcb37c07e6746c 100644 (file)
@@ -1,3 +1,4 @@
+// vim:ts=8:expandtab
 #include <stdbool.h>
 #include <glob.h>
 #include <string.h>
@@ -38,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));