Skip to content

Instantly share code, notes, and snippets.

@bnoordhuis
Created November 3, 2012 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnoordhuis/d10c37cd9169231e689a to your computer and use it in GitHub Desktop.
Save bnoordhuis/d10c37cd9169231e689a to your computer and use it in GitHub Desktop.
diff --git a/uv.gyp b/uv.gyp
index 14930cf..96ee36e 100644
--- a/uv.gyp
+++ b/uv.gyp
@@ -32,7 +32,13 @@
'direct_dependent_settings': {
'include_dirs': [ 'include' ],
'conditions': [
- ['OS=="linux"', {
+ ['OS != "win"', {
+ 'defines': [ '_LARGEFILE_SOURCE', '_FILE_OFFSET_BITS=64' ],
+ }],
+ ['OS == "mac"', {
+ 'defines': [ '_DARWIN_USE_64_BIT_INODE=1' ],
+ },
+ ['OS == "linux"', {
'libraries': [ '-ldl' ],
}],
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment