No getline() on Snow Leopard
It appears the current master does not build on OS X Snow Leopard since there getline() is missing. (Lion seems to have it? Can't check, since I'm still on SL.)
So one ends up with something like:
In file included from /Users/jhegeman/tmp/tmp_darktable/darktable/src/common/image.h:24, from /Users/jhegeman/tmp/tmp_darktable/darktable/src/common/exif.h:22, from /Users/jhegeman/tmp/tmp_darktable/darktable/src/common/exif.cc:26: /Users/jhegeman/tmp/tmp_darktable/darktable/src/common/darktable.h: In function 'void dt_print_mem_usage()': /Users/jhegeman/tmp/tmp_darktable/darktable/src/common/darktable.h:254: error: 'getline' was not declared in this scope maker2: *** [src/CMakeFiles/lib_darktable.dir/common/exif.cc.o] Error 1
I'm now trying to come up with a (bit of a kludgy) solution based on the getline() implementation I found here: http://stackoverflow.com/questions/4160353/getline-on-macosx-10-6-crashing-c-compiler
Unless people have better ideas? I guess copying the GNU version is not allowed, and actually I'm not too sure I'm allowed to just copy-paste the SE solution either. Suggestions?