View | Details | Raw Unified | Return to bug 43607
Collapse All | Expand All

(-)nam_stream.cc (-2 / +2 lines)
Lines 23-29 Link Here
23
#ifdef WIN32
23
#ifdef WIN32
24
#include <limits.h>
24
#include <limits.h>
25
#else
25
#else
26
#include <values.h>
26
#include <limits.h>
27
#endif
27
#endif
28
28
29
#include <assert.h>
29
#include <assert.h>
Lines 429-435 Link Here
429
	switch(whence) {
429
	switch(whence) {
430
	case SEEK_SET: lim = offset; break;
430
	case SEEK_SET: lim = offset; break;
431
	case SEEK_CUR: lim = tell() + offset; break;
431
	case SEEK_CUR: lim = tell() + offset; break;
432
	case SEEK_END: lim = MAXLONG; break; // XXX: MAXINT may not be max(off_t)
432
	case SEEK_END: lim = LONG_MAX; break; // XXX: MAXINT may not be max(off_t)
433
	}
433
	}
434
	insure_backing(lim);
434
	insure_backing(lim);
435
	if (0 == fseek(back_, offset, whence))
435
	if (0 == fseek(back_, offset, whence))

Return to bug 43607