Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Fix LevelDB builds for modern gcc versions
Browse files Browse the repository at this point in the history
LevelDB fails to compile with the current compiler flags on a Debian box running gcc 4.7.1 due to an undefined 'ssize_t'. Other users are also seeing this failure: Level/levelup#224.

The standalone LevelDB project builds with -std=c++0x which fixes the above error.
  • Loading branch information
sharvil committed Nov 29, 2014
1 parent 185b870 commit 5198231
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deps/leveldb/leveldb.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
'-fno-builtin-memcmp'
, '-fPIC'
]
, 'cflags': [ '-std=c++0x' ]
, 'cflags!': [ '-fno-tree-vrp' ]
}]
, ['OS != "win"' and 'OS != "freebsd"', {
Expand Down

0 comments on commit 5198231

Please sign in to comment.