freebsd-ports/lang/q/files/patch-modules-octave_octave.c
Martin Wilke f63311415c - Fix build with gcc 4.2
PR:		118029
Submitted by:	Pietro Cerutti <gahr@gahr.ch>
Approved by:	portmgr (erwin)
2007-11-22 08:35:23 +00:00

19 lines
561 B
C

--- modules/octave/octave.c.orig 2007-11-14 03:04:18.000000000 +0100
+++ modules/octave/octave.c 2007-11-14 03:06:27.000000000 +0100
@@ -126,6 +126,8 @@
static const char *octaverc = ".octaverc";
static const char *octaverc_bak = ".octaverc.$$$";
+static int send_octave(char *);
+
/* handle SIGINT and SIGTERM */
#if RETSIGTYPE == void
@@ -272,7 +274,6 @@
FILE *fp, *fp2;
char buf[bufsz];
int bak = 0;
- static int send_octave(char *cmd);
static int init = 0;
if (!octp) {
/* get the command from the OCTAVE variable if defined */