mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 00:12:45 +00:00
Allow less to work on > 2GB files.
This commit is contained in:
parent
a4bc7676d4
commit
8a85f2635f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60814
@ -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