Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

1.5.1 build fails on OS X when using libc++ #46

Closed
lucas-clemente opened this Issue · 1 comment

2 participants

@lucas-clemente

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.

@aleks-f aleks-f was assigned
@aleks-f
Owner

Thanks, fixed:

7094df5

@aleks-f aleks-f closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.