GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Compiling the 1.5.1 prerelease using libc++ fails in the file DirectoryWatcher.cpp.
src/DirectoryWatcher.cpp:419:4: error: use of undeclared identifier 'close'
src/DirectoryWatcher.cpp:426:3: error: use of undeclared identifier 'close'
src/DirectoryWatcher.cpp:427:3: error: use of undeclared identifier 'close'
My configure command was
../src/configure --prefix=../install --no-tests --no-samples --cflags='-fPIC -stdlib=libc++' --static --omit=Data,Zip --config=Darwin64-clang
As a fix, #include <unistd.h> should be inserted in the file on OS X. I have not submitted a pull request since I'm not 100% sure where in the file to put it.