summaryrefslogtreecommitdiff
path: root/generic/Handle.cpp
diff options
context:
space:
mode:
authorPixel <Pixel>2002-10-31 23:20:34 +0000
committerPixel <Pixel>2002-10-31 23:20:34 +0000
commit419a05e177eb34815d6f8fad64654376805f1552 (patch)
tree70c91766c3014bbbbfe256c1dbeff470d43d0a12 /generic/Handle.cpp
parent0ecc8766fc348d3c35c7a34d9695461b8a485383 (diff)
Bleh
Diffstat (limited to 'generic/Handle.cpp')
-rw-r--r--generic/Handle.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/generic/Handle.cpp b/generic/Handle.cpp
index 4e318c6..8aa48b8 100644
--- a/generic/Handle.cpp
+++ b/generic/Handle.cpp
@@ -10,11 +10,17 @@
#define _(x) x
#endif
-Handle::Handle(const Handle & nh) : itell(0), h(nh.h >= 0 ? dup(nh.h) : nh.h), closed(nh.closed), nonblock(nh.closed), zfile(0), z(0) {
+Handle::Handle(const Handle & nh) : itell(0), h(nh.h >= 0 ? dup(nh.h) : nh.h), closed(nh.closed), nonblock(nh.closed)
+#ifdef HAVE_ZLIB
+, zfile(0), z(0)
+#endif
+{
// cerr << "Duplication of handle " << nh.h << " to " << h << endl;
+#ifdef HAVE_ZLIB
if ((h >= 0) && (nh.z)) {
SetZ(nh.z);
}
+#endif
}
Handle::~Handle() {
@@ -22,7 +28,11 @@ Handle::~Handle() {
close();
}
-Handle::Handle(int nh) : h(nh), closed(false), nonblock(false), zfile(0), z(0) {
+Handle::Handle(int nh) : h(nh), closed(false), nonblock(false)
+#ifdef HAVE_ZLIB
+, zfile(0), z(0)
+#endif
+{
// cerr << "Initialising handle " << h << endl;
}