32aa7d6db7ae9a0fc9ac56ac23b29b187ab26003
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / zlog / 0001-fix-compiling-on-Buildroot.patch
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
5
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
8 defined.
9
10 Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
11 ---
12  src/fmacros.h |    4 ++++
13  1 files changed, 4 insertions(+), 0 deletions(-)
14
15 diff --git a/src/fmacros.h b/src/fmacros.h
16 index fa37948..059dfeb 100644
17 --- a/src/fmacros.h
18 +++ b/src/fmacros.h
19 @@ -14,7 +14,11 @@
20  #define _XOPEN_SOURCE
21  #endif
22
23 +#ifndef _LARGEFILE_SOURCE
24  #define _LARGEFILE_SOURCE
25 +#endif
26 +#ifndef _FILE_OFFSET_BITS
27  #define _FILE_OFFSET_BITS 64
28 +#endif
29
30  #endif
31 --
32 1.7.7