Use getline from POSIX.1-2008 when available
authorPino Toscano <toscano.pino@tiscali.it>
Fri, 26 Apr 2013 14:12:12 +0000 (16:12 +0200)
committerThiago Macieira <thiago.macieira@intel.com>
Fri, 26 Apr 2013 21:06:25 +0000 (23:06 +0200)
commit848789c2d777e353e7c07320b68a7480beb107a6
tree256d1c87d1d382f7e4053aa3a5aaac6ac8484777
parentad7ec8f6be5bf3c9854168d6c2605fa07cacfc85
Use getline from POSIX.1-2008 when available

Ask the standard library to use POSIX.1-2008, and if available use its getline
function to read lines from the SDK configuration file.
If not, fallback on the current way (fgets with PATH_MAX-sized buffer), which
is now used only if PATH_MAX is defined.
If neither POSIX.1-2008 nor PATH_MAX are available, error out.

Change-Id: I8d2d256530d68884850535a6cd5908d1205035bc
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/qtchooser/main.cpp