Allow less to work on > 2GB files.
This commit is contained in:
parent
b102c893de
commit
a9e2c8c7d1
@ -1,3 +1,4 @@
|
||||
/* $FreeBSD$ */
|
||||
/*
|
||||
* Copyright (C) 1984-2000 Mark Nudelman
|
||||
*
|
||||
@ -139,8 +140,8 @@ void free();
|
||||
/*
|
||||
* Special types and constants.
|
||||
*/
|
||||
typedef long POSITION;
|
||||
#define PR_POSITION "%ld"
|
||||
typedef off_t POSITION;
|
||||
#define PR_POSITION "%lld"
|
||||
#define MAX_PRINT_POSITION 20
|
||||
#define MAX_PRINT_INT 10
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
/* $FreeBSD$ */
|
||||
/*
|
||||
* Copyright (C) 1984-2000 Mark Nudelman
|
||||
*
|
||||
@ -111,7 +112,7 @@ ap_pos(pos)
|
||||
{
|
||||
char buf[MAX_PRINT_POSITION];
|
||||
|
||||
sprintf(buf, PR_POSITION, pos);
|
||||
sprintf(buf, PR_POSITION, (long long)pos);
|
||||
ap_str(buf);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user