mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
Fix gcc4 build.
This commit is contained in:
parent
56fe2b11b5
commit
9f289f5957
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=198225
@ -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 <stdlib.h>
|
||||
+#include <unistd.h>
|
||||
+#include <stdio.h>
|
||||
+#include <string.h>
|
||||
+#endif
|
||||
|
||||
#include "funcs.h"
|
||||
|
9
vietnamese/vnless/files/patch-ch.c
Normal file
9
vietnamese/vnless/files/patch-ch.c
Normal file
@ -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 */
|
||||
|
9
vietnamese/vnless/files/patch-decode.c
Normal file
9
vietnamese/vnless/files/patch-decode.c
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user