Skip to content

Commit

Permalink
On Linux, define _FILE_OFFSET_BITS to 64 to support large files on
Browse files Browse the repository at this point in the history
32-bit systems.

Addresses github issue 45.
  • Loading branch information
0-wiz-0 committed Aug 17, 2018
1 parent 5078ac9 commit 55e1bfa
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
@@ -1,5 +1,10 @@
#ifndef HAD_CONFIG_H
#define HAD_CONFIG_H
#if defined(__linux__)
#ifndef _FILE_OFFSET_BITS
#define _FILE_OFFSET_BITS 64
#endif
#endif
#ifndef _HAD_ZIPCONF_H
#include "zipconf.h"
#endif
Expand Down

0 comments on commit 55e1bfa

Please sign in to comment.