aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/CheckFileOffsetBits.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/CheckFileOffsetBits.c')
-rw-r--r--cmake/CheckFileOffsetBits.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/CheckFileOffsetBits.c b/cmake/CheckFileOffsetBits.c
new file mode 100644
index 00000000..de98296e
--- /dev/null
+++ b/cmake/CheckFileOffsetBits.c
@@ -0,0 +1,9 @@
+#include <sys/types.h>
+
+#define KB ((off_t)(1024))
+#define MB ((off_t)(KB*1024))
+#define GB ((off_t)(MB*1024))
+int tb[((GB+GB+GB) > GB) ? 1 : -1];
+
+int main()
+{ return 0; }