-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Milestone
Description
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'
close(_dirFD);
^
src/DirectoryWatcher.cpp:426:3: error: use of undeclared identifier 'close'
close(_dirFD);
^
src/DirectoryWatcher.cpp:427:3: error: use of undeclared identifier 'close'
close(_queueFD);
^
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels