OSDN Git Service

Check for __linux__ instead of linux during compilation
authorEero Tamminen <eero.t.tamminen@intel.com>
Tue, 10 Feb 2015 14:55:22 +0000 (14:55 +0000)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Thu, 12 Feb 2015 22:10:10 +0000 (14:10 -0800)
commit1972e9223764618aedc5adc32b64b2c043d1b826
tree964ea306f8dc5489381738cb691484c0f44a60c4
parented340abc37b07cb9fc788ae77d837088c54cd16a
Check for __linux__ instead of linux during compilation

"__linux__" is the POSIX define for checking for Linux OS, "linux" is
deprecated and apparently not supported by Android.

Besides correcting the define, patch adds error for the case OS isn't
recognized.

Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
v2: Drop double negative from commit msg. Spotted by Mateusz Jończyk.
[Emil Velikov: Remove irrelevant Android details from commit msg.]
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
src/common_init.c