Allow less to work on > 2GB files.

This commit is contained in:
ps 2000-05-23 07:34:27 +00:00
parent b102c893de
commit a9e2c8c7d1
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);
}