From e565e313f79c78eb1be27ce6ea789011105cf549 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Mon, 31 Aug 2009 19:34:57 +0200 Subject: Support for (Debian) GNU/kFreeBSD --- src/process_runs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/process_runs.c') 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)); -- cgit v1.2.3