Skip to content

Commit

Permalink
Set _FILE_OFFSET_BITS to 64
Browse files Browse the repository at this point in the history
This allows for operating on large files when compiled in 32-bit mode.

Fixes ccache#649.
  • Loading branch information
jrosdahl committed Sep 2, 2020
1 parent eae946b commit c765933
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
# define _XOPEN_SOURCE_EXTENDED
#endif

// Handle large files when compiled in 32-bit mode.
#ifndef _FILE_OFFSET_BITS
# define _FILE_OFFSET_BITS 64
#endif

// clang-format off
#cmakedefine _WIN32_WINNT @_WIN32_WINNT@
// clang-format on
Expand Down

0 comments on commit c765933

Please sign in to comment.