On Monday 18 May 2015 17:56:36 Keane, Erich wrote:
> Apparently, android defines __linux__ despite not being a fully
> compatible linux implementation.  This is fixed in patch-set
> https://gerrit.iotivity.org/gerrit/#/c/1020/

It comes from GCC because GCC doesn't care what the C library is. It's a Linux 
kernel and that's all that matters. You can do the normal syscalls and you're 
going to get standard Linux behaviour.

If you're looking for the userspace checks, check for __GLIBC__. uClibc also 
defines this, so you're good. Other small libc for Linux (newt, MUSL, etc.) may 
not, so I don't know exactly what you'll need there.

In any case, I don't have a <uuid/uuid.h> header in my system by default. I 
have to install libuuid-devel to get it. If we're introducing a new 
dependency, please document it and announce on the mailing list.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Reply via email to