| 1 | diff -u -r ../util-linux-2.28/text-utils/pg.c ./text-utils/pg.c |
| 2 | --- ../util-linux-2.28/text-utils/pg.c 2016-03-07 09:30:07.447866602 -0500 |
| 3 | +++ ./text-utils/pg.c 2016-06-22 06:41:16.800629484 -0400 |
| 4 | @@ -46,7 +46,7 @@ |
| 5 | #ifndef TIOCGWINSZ |
| 6 | # include <sys/ioctl.h> |
| 7 | #endif |
| 8 | -#include <sys/termios.h> |
| 9 | +#include <termios.h> |
| 10 | #include <fcntl.h> |
| 11 | #include <regex.h> |
| 12 | #include <stdio.h> |
| 13 | @@ -74,7 +74,7 @@ |
| 14 | #include "closestream.h" |
| 15 | #include "strutils.h" |
| 16 | |
| 17 | -#define READBUF LINE_MAX /* size of input buffer */ |
| 18 | +#define READBUF _POSIX2_LINE_MAX /* size of input buffer */ |
| 19 | #define CMDBUF 255 /* size of command buffer */ |
| 20 | #define TABSIZE 8 /* spaces consumed by tab character */ |
| 21 | |
| 22 | @@ -608,7 +608,7 @@ |
| 23 | char key; |
| 24 | int state = COUNT; |
| 25 | int escape = 0; |
| 26 | - char b[LINE_MAX], *p; |
| 27 | + char b[_POSIX2_LINE_MAX], *p; |
| 28 | |
| 29 | if (pageno != -1) { |
| 30 | if ((p = strstr(pstring, "%d")) == NULL) { |