solettaproject / soletta

Soletta Project is a framework for making IoT devices. With Soletta Project's libraries developers can easily write software for devices that control actuators/sensors and communicate using standard technologies. It enables adding smartness even on the smallest edge devices.
http://solettaproject.org
Apache License 2.0
225 stars 108 forks source link

iio:cpp: Fix build when compiling with g++ #2328

Closed ceolin closed 8 years ago

ceolin commented 8 years ago

NAME_MAX is defined in linux/limits.h, as sol-iio is linux specific, there is no problem in including a linux header.

Signed-off-by: Flavio Ceolin flavio.ceolin@intel.com

cabelitos commented 8 years ago

@edersondisouza I don't think so, since IIO is only supossed to run on linux. +1

ceolin commented 8 years ago

@edersondisouza sol-missing.h is not a installed. Also, it'll need to include this header right ? What will happen in the other platforms ?

cabelitos commented 8 years ago

@ceolin what you mean? IIO is linux only

ceolin commented 8 years ago

@cabelitos i was talking about put this header (linux/limits.h) in sol-missing.h. This would cause problems in other platforms.

cabelitos commented 8 years ago

Indeed. Anyway +1.

edersondisouza commented 8 years ago

+1

ceolin commented 8 years ago

merged, thank you guys