Fix compile on GNU/Hurd, by Lutin.

SVN revision: 44898
This commit is contained in:
Gustavo Sverzut Barbieri 2010-01-04 21:50:31 +00:00
parent c2532a7691
commit db52717d88
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
# ifdef _WIN32
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
# elif defined (__SUNPRO_C)
# elif defined (__SUNPRO_C) || defined(__GNU__)
# include <unistd.h>
# elif defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__) || defined (__DragonFly__) || defined (__MacOSX__) || ( defined (__MACH__) && defined (__APPLE__))
# include <unistd.h>
@ -133,7 +133,7 @@ EAPI int eina_cpu_count(void)
GetSystemInfo(&sysinfo);
return sysinfo.dwNumberOfProcessors;
# elif defined (__SUNPRO_C)
# elif defined (__SUNPRO_C) || defined(__GNU__)
/*
* _SC_NPROCESSORS_ONLN: number of processors that are online, that
is available when sysconf is called. The number