summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/Handle.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/Handle.h b/includes/Handle.h
index 967e221..3836f3e 100644
--- a/includes/Handle.h
+++ b/includes/Handle.h
@@ -2,7 +2,9 @@
#define __HANDLE_H__
#ifdef __cplusplus
+#ifdef HAVE_ZLIB
#include <zlib.h>
+#endif
#include <unistd.h>
#include <iostream>
#include <String.h>
@@ -32,7 +34,9 @@ class Handle : public Base {
int GetHandle();
virtual bool CanWatch();
virtual void Dup(const Handle &);
+#ifdef HAVE_ZLIB
virtual void SetZ(int) throw (GeneralException);
+#endif
protected:
Handle(int h);
off_t itell;
@@ -41,8 +45,10 @@ class Handle : public Base {
ssize_t uread(void *, size_t);
int h;
bool closed, nonblock;
+#ifdef HAVE_ZLIB
gzFile zfile;
int z;
+#endif
};
Handle & operator<<(Handle &, const String &);