Allow less to work on > 2GB files.

This commit is contained in:
Paul Saab 2000-05-23 07:34:27 +00:00
parent a4bc7676d4
commit 8a85f2635f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60814
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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);
}