diff options
| author | Gavin Andresen <[email protected]> | 2013-01-30 15:25:30 -0800 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-01-30 15:25:30 -0800 |
| commit | 8fd65c944f8f55ed956ac2ce6105060bf499741e (patch) | |
| tree | d704dacc997ddb3536b6307404d2536e09c5ba78 | |
| parent | Merge pull request #2248 from gavinandresen/issue2239 (diff) | |
| parent | Support large files on 32-bit Linux (diff) | |
| download | discoin-8fd65c944f8f55ed956ac2ce6105060bf499741e.tar.xz discoin-8fd65c944f8f55ed956ac2ce6105060bf499741e.zip | |
Merge pull request #2236 from sipa/largefiles
Support large files on 32-bit Linux
| -rw-r--r-- | bitcoin-qt.pro | 2 | ||||
| -rw-r--r-- | src/makefile.unix | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/bitcoin-qt.pro b/bitcoin-qt.pro index 6c1c4a78c..8a6f9efeb 100644 --- a/bitcoin-qt.pro +++ b/bitcoin-qt.pro @@ -372,6 +372,8 @@ win32:!contains(MINGW_THREAD_BUGFIX, 0) { !win32:!macx { DEFINES += LINUX LIBS += -lrt + # _FILE_OFFSET_BITS=64 lets 32-bit fopen transparently support large files. + DEFINES += _FILE_OFFSET_BITS=64 } macx:HEADERS += src/qt/macdockiconhandler.h diff --git a/src/makefile.unix b/src/makefile.unix index 14cf1b8fa..b52a0f8ae 100644 --- a/src/makefile.unix +++ b/src/makefile.unix @@ -7,7 +7,7 @@ USE_IPV6:=1 LINK:=$(CXX) -DEFS=-DBOOST_SPIRIT_THREADSAFE +DEFS=-DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 DEFS += $(addprefix -I,$(CURDIR) $(CURDIR)/obj $(BOOST_INCLUDE_PATH) $(BDB_INCLUDE_PATH) $(OPENSSL_INCLUDE_PATH)) LIBS = $(addprefix -L,$(BOOST_LIB_PATH) $(BDB_LIB_PATH) $(OPENSSL_LIB_PATH)) |