Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build with VS2012 #4

Open
garick2die4 opened this issue Dec 24, 2013 · 0 comments
Open

Can't build with VS2012 #4

garick2die4 opened this issue Dec 24, 2013 · 0 comments

Comments

@garick2die4
Copy link

I've trying to build libxdiff in Windows. But my build fails because there is no unistd.h file:
d:\kovia\projects\libxdiff\xinclude.h(31) : fatal error C1083: Cannot open inclu
de file: 'unistd.h': No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0
\VC\BIN\cl.exe"' : return code '0x2'
Stop.

I found the following code in xinclude.h from libgit2:
It seems that this change solves the problem:

ifdef _WIN32

else

include <unistd.h>

endif

Could you please fix it in master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant