]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Set _FILE_OFFSET_BITS to 64
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 2 Sep 2020 07:51:54 +0000 (09:51 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 2 Sep 2020 07:51:54 +0000 (09:51 +0200)
This allows for operating on large files when compiled in 32-bit mode.

Fixes #649.

src/system.h

index c669553c4639c5422b7b6920bb4e875a3c158bcf..1e03c99d9f50393a1bbb54b852c4459bc9ae5b91 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2016 Joel Rosdahl
+// Copyright (C) 2010-2020 Joel Rosdahl
 //
 // This program is free software; you can redistribute it and/or modify it
 // under the terms of the GNU General Public License as published by the Free
 
 #include "config.h"
 
+#ifndef _FILE_OFFSET_BITS
+#define _FILE_OFFSET_BITS 64
+#endif
+
 #include <sys/file.h>
 #ifdef HAVE_SYS_MMAN_H
 #include <sys/mman.h>