From: Raoul HECKY Date: Mon, 9 Nov 2009 09:07:10 +0000 (+0000) Subject: Add __MACH__ and __APPLE__ guards to compile on macosx X-Git-Tag: submit/devel/efl/20131022.203902~14817 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7eb75cbd63c335869fbc0cde09b6d140dcc009ed;p=platform%2Fupstream%2Fefl.git Add __MACH__ and __APPLE__ guards to compile on macosx SVN revision: 43568 --- diff --git a/legacy/eina/src/lib/eina_cpu.c b/legacy/eina/src/lib/eina_cpu.c index ba18032..896e79e 100644 --- a/legacy/eina/src/lib/eina_cpu.c +++ b/legacy/eina/src/lib/eina_cpu.c @@ -26,7 +26,7 @@ # include # elif defined (__SUNPRO_C) # include -# elif defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__) || defined (__DragonFly__) || defined (__MacOSX__) +# elif defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__) || defined (__DragonFly__) || defined (__MacOSX__) || ( defined (__MACH__) && defined (__APPLE__)) # include # include # include @@ -146,7 +146,8 @@ EAPI int eina_cpu_count(void) */ return sysconf(_SC_NPROCESSORS_ONLN); -# elif defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__) || defined (__DragonFly__) || defined (__MacOSX__) +# elif defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__) || defined (__DragonFly__) || defined (__MacOSX__) || ( defined (__MACH__) && defined (__APPLE__)) + int mib[4]; size_t len; int cpus;