diff --git a/extras/temp_file.c b/extras/temp_file.c
index 32b6560..a409d7a 100644
--- a/extras/temp_file.c
+++ b/extras/temp_file.c
@@ -16,6 +16,10 @@
License along with the GNU C Library; if not, see
. */
+/* This is required to get an mkstemp which can create large files on
+ some 32-bit platforms. */
+#define _FILE_OFFSET_BITS 64
+
#include
#include
#include