23 lines
432 B
Plaintext
Raw Normal View History

--- nam_stream.cc.orig Fri Jul 14 07:19:41 2000
+++ nam_stream.cc Fri Jul 14 07:21:01 2000
@@ -23,8 +23,10 @@
#ifdef WIN32
#include <limits.h>
#else
+#ifndef __OpenBSD__
#include <values.h>
#endif
+#endif
#include <assert.h>
@@ -418,6 +420,8 @@
insure_backing(tell() + 1);
return getc(back_);
}
+
+#define MAXLONG (((off_t) 1) << ((sizeof(off_t) * 8) - 1)) - 1
off_t
NamStreamPipe::seek(off_t offset, int whence)