diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2009-08-31 19:34:57 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2009-09-01 12:39:49 +0200 |
commit | e565e313f79c78eb1be27ce6ea789011105cf549 (patch) | |
tree | df19e857cc3320392b60077a71ea3a9d42d9939e /src/process_runs.c | |
parent | 39b153fdd100088b567130a354824ef49b190009 (diff) |
Support for (Debian) GNU/kFreeBSD
Diffstat (limited to 'src/process_runs.c')
-rw-r--r-- | src/process_runs.c | 2 |
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)); |