diff --git a/vietnamese/vnless/files/patch-02 b/vietnamese/vnless/files/patch-02 index 8a5f11712c62..a7a90646055f 100644 --- a/vietnamese/vnless/files/patch-02 +++ b/vietnamese/vnless/files/patch-02 @@ -1,6 +1,6 @@ ---- less.h.orig Mon Feb 24 12:45:38 1992 -+++ less.h Wed Dec 4 02:35:12 1996 -@@ -31,7 +31,11 @@ +--- less.h.orig 1992-02-24 12:45:38.000000000 -0800 ++++ less.h 2007-08-23 15:16:23.000000000 -0700 +@@ -31,7 +31,11 @@ typedef long POSITION; * The type of signal handler functions. * Usually int, although it should be void. */ @@ -12,16 +12,18 @@ #define FILENAME 128 /* Max size of a filename */ -@@ -74,7 +78,12 @@ +@@ -74,7 +78,14 @@ typedef int HANDLER; #define SIGNAL(sig,func) signal(sig,func) /* Library function declarations */ -+#ifdef USE_FBSD_STD_HDRS ++#ifdef NO_STD_HDRS offset_t lseek(); char *calloc(); +#else +#include +#include ++#include ++#include +#endif #include "funcs.h" diff --git a/vietnamese/vnless/files/patch-ch.c b/vietnamese/vnless/files/patch-ch.c new file mode 100644 index 000000000000..3928b125f9f6 --- /dev/null +++ b/vietnamese/vnless/files/patch-ch.c @@ -0,0 +1,9 @@ +--- ch.c 1992-02-24 12:45:37.000000000 -0800 ++++ ../../ch.c 2007-08-23 15:35:14.000000000 -0700 +@@ -7,4 +7,6 @@ + #include "less.h" + ++static int ch_addbuf(int); ++ + public int file = -1; /* File descriptor of the input file */ + diff --git a/vietnamese/vnless/files/patch-decode.c b/vietnamese/vnless/files/patch-decode.c new file mode 100644 index 000000000000..af82149e0900 --- /dev/null +++ b/vietnamese/vnless/files/patch-decode.c @@ -0,0 +1,9 @@ +--- decode.c.orig 1992-02-24 12:45:37.000000000 -0800 ++++ decode.c 2007-08-23 15:38:55.000000000 -0700 +@@ -19,4 +19,6 @@ + #include "cmd.h" + ++static int cmd_search(char *, char *); ++ + /* + * Command table is ordered roughly according to expected