From a39d637027cf14ab053ba642ab7e9f2a4d9983f8 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sun, 20 Dec 2009 10:02:41 +0000 Subject: [PATCH] support of Debian/kFreeBSD (FreeBSD using the glibc on top of a FreeBSD kernel) SVN revision: 44597 --- legacy/eina/src/lib/eina_cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/eina/src/lib/eina_cpu.c b/legacy/eina/src/lib/eina_cpu.c index 6ae5fa83f2..82e4c981f7 100644 --- a/legacy/eina/src/lib/eina_cpu.c +++ b/legacy/eina/src/lib/eina_cpu.c @@ -30,7 +30,7 @@ # include # include # include -# elif defined (__linux__) +# elif defined (__linux__) || defined(__GLIBC__) # define _GNU_SOURCE # include # endif @@ -164,7 +164,7 @@ EAPI int eina_cpu_count(void) return cpus; -# elif defined (__linux__) +# elif defined (__linux__) || defined(__GLIBC__) cpu_set_t cpu; int i; static int cpus = 0;