#include some missing headers to avoid implicit function declarations,
ok jasper@
This commit is contained in:
parent
ba5258dc21
commit
55d83e5db7
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.13 2011/06/25 15:36:08 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.14 2011/06/26 09:48:50 sthen Exp $
|
||||
|
||||
COMMENT= curses spreadsheet-calculator program
|
||||
|
||||
DISTNAME= sc-7.16
|
||||
REVISION= 1
|
||||
REVISION= 2
|
||||
CATEGORIES= math
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SUNSITE:=apps/financial/spreadsheet/}
|
||||
@ -15,9 +15,10 @@ PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
WANTLIB= c curses m termcap
|
||||
|
||||
USE_GROFF = Yes
|
||||
WANTLIB += c curses m termcap
|
||||
|
||||
USE_GROFF= Yes
|
||||
NO_REGRESS= Yes
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
10
math/sc/patches/patch-help_c
Normal file
10
math/sc/patches/patch-help_c
Normal file
@ -0,0 +1,10 @@
|
||||
$OpenBSD: patch-help_c,v 1.1 2011/06/26 09:48:50 sthen Exp $
|
||||
--- help.c.orig Sat Jun 25 23:54:17 2011
|
||||
+++ help.c Sat Jun 25 23:54:36 2011
|
||||
@@ -6,5 +6,6 @@
|
||||
*/
|
||||
|
||||
+#include <stdlib.h>
|
||||
#ifdef QREF
|
||||
#include <stdio.h>
|
||||
char *header = " Quick Reference";
|
@ -1,7 +1,16 @@
|
||||
$OpenBSD: patch-lex_c,v 1.5 2011/06/25 15:33:33 jasper Exp $
|
||||
--- lex.c.orig Wed Aug 21 00:44:26 2002
|
||||
+++ lex.c Sat Jun 25 17:31:00 2011
|
||||
@@ -107,7 +107,7 @@ int
|
||||
$OpenBSD: patch-lex_c,v 1.6 2011/06/26 09:48:50 sthen Exp $
|
||||
--- lex.c.orig Sat Jun 25 23:40:11 2011
|
||||
+++ lex.c Sat Jun 25 23:39:40 2011
|
||||
@@ -34,6 +34,8 @@
|
||||
#include <signal.h>
|
||||
#include <setjmp.h>
|
||||
#include <ctype.h>
|
||||
+#include <unistd.h>
|
||||
+#include <math.h>
|
||||
#include "sc.h"
|
||||
|
||||
#ifdef NONOTIMEOUT
|
||||
@@ -107,7 +109,7 @@ int
|
||||
yylex()
|
||||
{
|
||||
char *p = line + linelim;
|
||||
@ -10,7 +19,7 @@ $OpenBSD: patch-lex_c,v 1.5 2011/06/25 15:33:33 jasper Exp $
|
||||
static int isfunc = 0;
|
||||
static bool isgoto = 0;
|
||||
static bool colstate = 0;
|
||||
@@ -642,7 +642,7 @@ nmgetch()
|
||||
@@ -642,7 +644,7 @@ nmgetch()
|
||||
|
||||
#endif
|
||||
|
||||
|
11
math/sc/patches/patch-sc_h
Normal file
11
math/sc/patches/patch-sc_h
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-sc_h,v 1.1 2011/06/26 09:48:50 sthen Exp $
|
||||
--- sc.h.orig Sat Jun 25 23:49:22 2011
|
||||
+++ sc.h Sat Jun 25 23:50:59 2011
|
||||
@@ -304,6 +304,7 @@ struct go_save {
|
||||
#define is_deleted 0020
|
||||
#define is_locked 0040
|
||||
#define is_label 0100
|
||||
+#undef is_cleared
|
||||
#define is_cleared 0200
|
||||
#define may_sync 0400
|
||||
|
@ -1,8 +1,7 @@
|
||||
$OpenBSD: patch-torev,v 1.3 2011/06/25 15:36:08 jasper Exp $
|
||||
$OpenBSD: patch-torev,v 1.4 2011/06/26 09:48:50 sthen Exp $
|
||||
--- torev.orig Tue May 8 07:19:34 2001
|
||||
+++ torev Sat Jun 25 17:30:42 2011
|
||||
@@ -1,4 +1,5 @@
|
||||
REVISION=`sed -e '/Revision/!D' -e 's/.*$Revision: 1.3 $.*/\1/' version.c`
|
||||
@@ -2,3 +2,4 @@
|
||||
sed -e s/pname/$name/g -e s/PNAME/$NAME/g \
|
||||
-e "s%#LIBDIR#%$LIBDIR%g" \
|
||||
- -e "s/#REVISION#/$REVISION/" $1
|
||||
|
24
math/sc/patches/patch-vi_c
Normal file
24
math/sc/patches/patch-vi_c
Normal file
@ -0,0 +1,24 @@
|
||||
$OpenBSD: patch-vi_c,v 1.1 2011/06/26 09:48:50 sthen Exp $
|
||||
--- vi.c.orig Fri Jul 12 01:48:29 2002
|
||||
+++ vi.c Sat Jun 25 23:52:50 2011
|
||||
@@ -16,7 +16,9 @@
|
||||
#include <signal.h>
|
||||
#include <curses.h>
|
||||
#include <ctype.h>
|
||||
+#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
+#include <stdbool.h>
|
||||
#include "sc.h"
|
||||
|
||||
#if defined(REGCOMP)
|
||||
@@ -39,10 +41,6 @@ void gototop();
|
||||
void gotobottom();
|
||||
|
||||
#define istext(a) (isalnum(a) || ((a) == '_'))
|
||||
-
|
||||
-#define bool int
|
||||
-#define true 1
|
||||
-#define false 0
|
||||
|
||||
static void append_line();
|
||||
static void back_hist();
|
16
math/sc/patches/patch-xmalloc_c
Normal file
16
math/sc/patches/patch-xmalloc_c
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-xmalloc_c,v 1.1 2011/06/26 09:48:50 sthen Exp $
|
||||
--- xmalloc.c.orig Fri Apr 26 00:37:58 2002
|
||||
+++ xmalloc.c Sat Jun 25 23:47:42 2011
|
||||
@@ -4,11 +4,9 @@
|
||||
*/
|
||||
|
||||
#include <curses.h>
|
||||
+#include <stdlib.h>
|
||||
#include "sc.h"
|
||||
|
||||
-extern char *malloc();
|
||||
-extern char *realloc();
|
||||
-extern void free();
|
||||
void fatal();
|
||||
|
||||
#ifdef SYSV3
|
Loading…
Reference in New Issue
Block a user