1 From a9f6a55bdb29a2bebc96a68ab53077906c25a9df Mon Sep 17 00:00:00 2001
2 From: Yegor Yefremov <yegorslists@googlemail.com>
3 Date: Wed, 22 Jan 2014 15:04:42 +0100
4 Subject: [PATCH] Fix compiling on Buildroot
6 Buildroot always specifies -D_LARGEFILE_SOURCE, -D_LARGEFILE64_SOURCE,
7 -D_FILE_OFFSET_BITS=64, so define them only if they are not already
10 Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
12 src/fmacros.h | 4 ++++
13 1 files changed, 4 insertions(+), 0 deletions(-)
15 diff --git a/src/fmacros.h b/src/fmacros.h
16 index fa37948..059dfeb 100644
23 +#ifndef _LARGEFILE_SOURCE
24 #define _LARGEFILE_SOURCE
26 +#ifndef _FILE_OFFSET_BITS
27 #define _FILE_OFFSET_BITS 64