diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2006-08-10 07:37:32 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2006-08-10 07:37:32 +0000 |
commit | 8abf80ec98b3f928e93133405f5cd084124d92d0 (patch) | |
tree | 696facf5ab0f98d6c98f1b0a404e24001c7ca8e5 /lang/f2c/files/patch-libf2c_MAIN.c | |
parent | - Update to 0.03 (diff) |
- Upgrade to 20060506;
- Remove FreeBSD specificities.
PR: ports/101054
Security: VuXML ID 43cb40b3-c8c2-11da-a672-000e0c2e438a
Diffstat (limited to 'lang/f2c/files/patch-libf2c_MAIN.c')
-rw-r--r-- | lang/f2c/files/patch-libf2c_MAIN.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lang/f2c/files/patch-libf2c_MAIN.c b/lang/f2c/files/patch-libf2c_MAIN.c new file mode 100644 index 000000000000..de56e9d49380 --- /dev/null +++ b/lang/f2c/files/patch-libf2c_MAIN.c @@ -0,0 +1,21 @@ +--- libf2c/MAIN.c.orig Sun Jul 30 15:06:49 2006 ++++ libf2c/MAIN.c Sun Jul 30 15:12:02 2006 +@@ -0,0 +1,18 @@ ++/* $FreeBSD$ ++ Add a pseudo entry point for cases where the main FOTRAN program is missing ++ e.g. ports/cad/tochnog. ++ ++ Credit: adapted from Sergio Gelato <gelato (at) sissa.it> on Usenet. ++*/ ++ ++#include <stdio.h> ++#include <stdlib.h> ++#include <sys/cdefs.h> ++ ++__weak_reference(missing_MAIN__,MAIN__); ++ ++void missing_MAIN__ (void) ++{ ++ fprintf(stderr, "The Fortran main program is missing.\n"); ++ abort(); ++} |