support of Debian/kFreeBSD (FreeBSD using the glibc on top of a FreeBSD kernel)
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 20 Dec 2009 10:02:41 +0000 (10:02 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 20 Dec 2009 10:02:41 +0000 (10:02 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@44597 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eina_cpu.c

index 6ae5fa8..82e4c98 100644 (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;