aboutsummaryrefslogtreecommitdiff
path: root/src/stable
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/stable/bzip2.cpp3
-rw-r--r--src/stable/bzip2.h5
-rw-r--r--src/stable/condition.cpp4
-rw-r--r--src/stable/lzma.cpp4
-rw-r--r--src/stable/lzma.h5
5 files changed, 19 insertions, 2 deletions
diff --git a/src/stable/bzip2.cpp b/src/stable/bzip2.cpp
index b48af37..b634a2c 100644
--- a/src/stable/bzip2.cpp
+++ b/src/stable/bzip2.cpp
@@ -8,6 +8,7 @@
8#include "bu/bzip2.h" 8#include "bu/bzip2.h"
9#include "bu/trace.h" 9#include "bu/trace.h"
10 10
11#ifdef BU_HAS_BZIP2
11#include <bzlib.h> 12#include <bzlib.h>
12 13
13#define pState ((bz_stream *)prState) 14#define pState ((bz_stream *)prState)
@@ -234,3 +235,5 @@ Bu::size Bu::BZip2::getCompressedSize()
234 return sTotalOut; 235 return sTotalOut;
235} 236}
236 237
238#endif
239
diff --git a/src/stable/bzip2.h b/src/stable/bzip2.h
index e2c2753..6b5d9a9 100644
--- a/src/stable/bzip2.h
+++ b/src/stable/bzip2.h
@@ -11,6 +11,9 @@
11#include <stdint.h> 11#include <stdint.h>
12 12
13#include "bu/filter.h" 13#include "bu/filter.h"
14#include "bu/autoconfig.h"
15
16#ifdef BU_HAS_BZIP2
14 17
15namespace Bu 18namespace Bu
16{ 19{
@@ -47,3 +50,5 @@ namespace Bu
47} 50}
48 51
49#endif 52#endif
53
54#endif
diff --git a/src/stable/condition.cpp b/src/stable/condition.cpp
index 7719d7b..b82626d 100644
--- a/src/stable/condition.cpp
+++ b/src/stable/condition.cpp
@@ -5,10 +5,10 @@
5 * terms of the license contained in the file LICENSE. 5 * terms of the license contained in the file LICENSE.
6 */ 6 */
7 7
8#include <sys/time.h>
9
10#include "bu/condition.h" 8#include "bu/condition.h"
11 9
10#include <sys/time.h>
11
12Bu::Condition::Condition() 12Bu::Condition::Condition()
13{ 13{
14 pthread_cond_init( &cond, NULL ); 14 pthread_cond_init( &cond, NULL );
diff --git a/src/stable/lzma.cpp b/src/stable/lzma.cpp
index d05c79f..c8e8960 100644
--- a/src/stable/lzma.cpp
+++ b/src/stable/lzma.cpp
@@ -8,6 +8,8 @@
8#include "bu/lzma.h" 8#include "bu/lzma.h"
9#include "bu/trace.h" 9#include "bu/trace.h"
10 10
11#ifdef BU_HAS_LZMA
12
11#include <lzma.h> 13#include <lzma.h>
12 14
13#define pState ((lzma_stream *)prState) 15#define pState ((lzma_stream *)prState)
@@ -246,3 +248,5 @@ Bu::size Bu::Lzma::getCompressedSize()
246 return sTotalOut; 248 return sTotalOut;
247} 249}
248 250
251#endif
252
diff --git a/src/stable/lzma.h b/src/stable/lzma.h
index f4a6e28..3685546 100644
--- a/src/stable/lzma.h
+++ b/src/stable/lzma.h
@@ -11,6 +11,9 @@
11#include <stdint.h> 11#include <stdint.h>
12 12
13#include "bu/filter.h" 13#include "bu/filter.h"
14#include "bu/autoconfig.h"
15
16#ifdef BU_HAS_LZMA
14 17
15namespace Bu 18namespace Bu
16{ 19{
@@ -57,3 +60,5 @@ namespace Bu
57} 60}
58 61
59#endif 62#endif
63
64#endif