node_curve.cc error Cannot open include file: 'unistd.h': No such file or directory
See original GitHub issue…\node_curve.cc(6): fatal error C1083: Cannot open include file: ‘unistd.h’: No such file or directory
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Windows_NT 6.1.7600
gyp ERR! command “node” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Program Files\nodejs\node_modules\homebridge-master\node_modules\HAP-NodeJS\node_modules\curve25519
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (3 by maintainers)
Top GitHub Comments
I’ll try to build in different configuration and ensure it didn’t break the build. I’ll merge the change after that.
I tried removing the #include of unistd.h from node_curve.cc, and it seems to work just fine that way. I don’t know why it was there in the first place. This should eliminate the need for the workaround of creating a unistd.h.
I submitted a pull request to KhaosT/node-curve25519. Maybe I should submit it to volschin/node-curve25519, as well? (KhaosT forked it from volschin.)