From 0fb4dcc22541a2b69a5c7f8adf31b9f17f45f4ac Mon Sep 17 00:00:00 2001 From: jlam Date: Wed, 12 Jan 2005 06:02:29 +0000 Subject: Ensure that f2c-main.c includes config.h so that F77_DUMMY_MAIN is defined. This fixes the build when using f2c-f77 as the Fortran compiler. --- math/octave-current/distinfo | 3 ++- math/octave-current/patches/patch-ah | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 math/octave-current/patches/patch-ah (limited to 'math') diff --git a/math/octave-current/distinfo b/math/octave-current/distinfo index 50c0395d1f3..49670d6ef58 100644 --- a/math/octave-current/distinfo +++ b/math/octave-current/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.21 2004/12/05 11:17:54 adam Exp $ +$NetBSD: distinfo,v 1.22 2005/01/12 06:02:29 jlam Exp $ SHA1 (octave-2.1.64.tar.bz2) = 90f54fd7515cc3c629ef9104d3879d62a14b2a12 Size (octave-2.1.64.tar.bz2) = 4341798 bytes @@ -8,3 +8,4 @@ SHA1 (patch-ad) = 03dfbfb17b1262d5094dbc42758a99011e05fdd4 SHA1 (patch-ae) = 79544d09268d41647b081680fc839f4fe481b111 SHA1 (patch-af) = 775eb3c4d4769aada0d01df228c8ca48c489842d SHA1 (patch-ag) = f6c4263cf08985e4897ea69cce6a9c8b329ec48c +SHA1 (patch-ah) = f7009d8b35354a1d403d5bdeae68a211435b004c diff --git a/math/octave-current/patches/patch-ah b/math/octave-current/patches/patch-ah new file mode 100644 index 00000000000..9484a081516 --- /dev/null +++ b/math/octave-current/patches/patch-ah @@ -0,0 +1,15 @@ +$NetBSD: patch-ah,v 1.4 2005/01/12 06:02:29 jlam Exp $ + +--- liboctave/f2c-main.c.orig 2002-04-03 19:44:22.000000000 -0500 ++++ liboctave/f2c-main.c +@@ -20,6 +20,10 @@ Software Foundation, 59 Temple Place - S + + */ + ++#ifdef HAVE_CONFIG_H ++#include ++#endif ++ + #include + + -- cgit v1.2.3