mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
editors/gate: fix build with clang
- Fix build with clang - Trim Makefile header Approved by: culot / jpaetzel (mentors, implicit)
This commit is contained in:
parent
5d331978ea
commit
9bcd36c3f8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=320849
@ -1,9 +1,5 @@
|
||||
# New ports collection makefile for: gate
|
||||
# Date created: 15 June 2000
|
||||
# Whom: James Howard
|
||||
#
|
||||
# Created by: James Howard
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= gate
|
||||
PORTVERSION= 2.06
|
||||
|
13
editors/gate/files/patch-spel.c
Normal file
13
editors/gate/files/patch-spel.c
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git spel.c spel.c
|
||||
index 5c53256..1e9ad04 100644
|
||||
--- spel.c
|
||||
+++ spel.c
|
||||
@@ -151,7 +151,7 @@ empty_repl()
|
||||
/* ADD_REPL - Add the given replacement to the list of replacements.
|
||||
* "replace" may be NULL to indicate that the word is to be ignored.
|
||||
*/
|
||||
-
|
||||
+void
|
||||
add_repl(char *word, int word_len, char *replace)
|
||||
{
|
||||
struct repl *r;
|
13
editors/gate/files/patch-subs.c
Normal file
13
editors/gate/files/patch-subs.c
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git subs.c subs.c
|
||||
index 287d9d3..a6caea9 100644
|
||||
--- subs.c
|
||||
+++ subs.c
|
||||
@@ -429,7 +429,7 @@ int cliplast(char *lastbuf, int bufsize)
|
||||
#endif
|
||||
|
||||
/* Make a copy of the file */
|
||||
- if ((cfp= make_copy()) == NULL) return;
|
||||
+ if ((cfp= make_copy()) == NULL) return 0;
|
||||
fflush(cfp);
|
||||
fseek(cfp,0L,0);
|
||||
|
Loading…
Reference in New Issue
Block a user