summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2014-08-21 14:22:03 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2014-08-21 14:36:51 (GMT)
commit49a5d89648db2e4167f3df9bdba416c4d0ba11e8 (patch)
treebe3a90c3385b06db4bfbc8b9713e75639cd4b80c
parentf63d954e03a9fe5072a023bfaffdd90d7088d240 (diff)
Moved defines to support large files into tng_io.c.
Change-Id: I63eb5a7205b751228b498851fc4ce0a6b78f7857
-rw-r--r--include/tng/tng_io.h2
-rw-r--r--src/lib/tng_io.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/include/tng/tng_io.h b/include/tng/tng_io.h
index aaf66cd..a27a027 100644
--- a/include/tng/tng_io.h
+++ b/include/tng/tng_io.h
@@ -290,8 +290,6 @@
#ifndef TNG_IO_H
#define TNG_IO_H 1
-#define _FILE_OFFSET_BITS 64
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c
index 5890542..e4234a5 100644
--- a/src/lib/tng_io.c
+++ b/src/lib/tng_io.c
@@ -9,6 +9,12 @@
* modify it under the terms of the Revised BSD License.
*/
+#define _FILE_OFFSET_BITS 64
+/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
+#define _LARGEFILE_SOURCE
+/* Define for large files, on AIX-style hosts. */
+#define _LARGE_FILES
+
#include "tng/tng_io.h"
#ifdef USE_STD_INTTYPES_H
contact: Jan Huwald // Impressum