summaryrefslogtreecommitdiff
path: root/cad/tnt-mmtl/patches/patch-am
diff options
context:
space:
mode:
Diffstat (limited to 'cad/tnt-mmtl/patches/patch-am')
-rw-r--r--cad/tnt-mmtl/patches/patch-am20
1 files changed, 20 insertions, 0 deletions
diff --git a/cad/tnt-mmtl/patches/patch-am b/cad/tnt-mmtl/patches/patch-am
new file mode 100644
index 00000000000..e63e3932798
--- /dev/null
+++ b/cad/tnt-mmtl/patches/patch-am
@@ -0,0 +1,20 @@
+$NetBSD: patch-am,v 1.1 2008/03/18 11:48:25 dmcmahill Exp $
+
+when building with f2c we need to define a dummy main. This is typically
+something like MAIN__. This is not needed if f2c-f77 were used for linking
+or if we'd used a different fortran compiler.
+
+--- bem/src/nmmtl.cpp.orig 2004-07-28 13:50:22.000000000 +0000
++++ bem/src/nmmtl.cpp 2008-03-16 17:00:11.000000000 +0000
+@@ -130,5 +130,10 @@
+
+
+-
++#ifdef F77_DUMMY_MAIN
++extern "C" int F77_DUMMY_MAIN()
++{
++ return 0;
++}
++#endif
+
+ int main (int argc, char **argv)