support of Debian/kFreeBSD (FreeBSD using the glibc on top of a FreeBSD kernel)

SVN revision: 44597
This commit is contained in:
Vincent Torri 2009-12-20 10:02:41 +00:00
parent bfd91eb67f
commit a39d637027
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
# include <unistd.h>
# include <sys/param.h>
# include <sys/sysctl.h>
# elif defined (__linux__)
# elif defined (__linux__) || defined(__GLIBC__)
# define _GNU_SOURCE
# include <sched.h>
# 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;