diff options
author | edwin <edwin@FreeBSD.org> | 2003-02-05 23:43:15 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-02-05 23:43:15 +0000 |
commit | e82c7047b1fada9480ef0171c184867409eb2999 (patch) | |
tree | 1eba0018d1ec71b809e68d1f87e87ad3dcf42fe7 /math/scilab/files | |
parent | fed721a72d8f35deb9eb5b207931be5cac6b1be0 (diff) | |
download | FreeBSD-ports-e82c7047b1fada9480ef0171c184867409eb2999.zip FreeBSD-ports-e82c7047b1fada9480ef0171c184867409eb2999.tar.gz |
Maintainer fix for math/scilab
The math/scilab port does not work on FreeBSD 5.0 due to
an header conflict. The following patch sent by Lyndon
Nerenberg (ports/47498) fixes the problem.
Reported by: Kris Kennaway (kris@obsecurity.org)
Fix by: Lyndon Nerenberg (lyndon@orthanc.ab.ca)
PR: ports/47508
Submitted by: Jean-Sebastien Roy <js@jeannot.org>
Diffstat (limited to 'math/scilab/files')
-rw-r--r-- | math/scilab/files/patch-ay | 11 | ||||
-rw-r--r-- | math/scilab/files/patch-az | 25 |
2 files changed, 36 insertions, 0 deletions
diff --git a/math/scilab/files/patch-ay b/math/scilab/files/patch-ay new file mode 100644 index 0000000..9a196f7 --- /dev/null +++ b/math/scilab/files/patch-ay @@ -0,0 +1,11 @@ +--- routines/xsci/wf_fig.h 2003/01/25 17:23:40 1.1 ++++ routines/xsci/wf_fig.h 2003/01/25 17:24:04 +@@ -48,7 +48,7 @@ + #include <errno.h> + + #ifndef linux +-#if !defined(__bsdi__) && !defined(__NetBSD__) ++#if !defined(__bsdi__) && !defined(__NetBSD__) && !defined(__FreeBSD__) + extern int errno; + extern int sys_nerr; + #if (! (defined(BSD) && (BSD >= 199306))) && !defined(freebsd) diff --git a/math/scilab/files/patch-az b/math/scilab/files/patch-az new file mode 100644 index 0000000..b7d779f --- /dev/null +++ b/math/scilab/files/patch-az @@ -0,0 +1,25 @@ +--- routines/xsci/x_misc.c 2003/01/25 17:30:25 1.1 ++++ routines/xsci/x_misc.c 2003/01/25 17:34:28 +@@ -509,10 +509,10 @@ + + /* #include "wf_fig.h" */ /** for sys_errlist **/ + #ifndef linux +-#if !defined(__bsdi__) && !defined(__NetBSD__) ++#if !defined(__bsdi__) && !defined(__NetBSD__) && !defined(__FreeBSD__) + extern int errno; + extern int sys_nerr; +-#if (! (defined(BSD) && (BSD >= 199306))) && !defined(freebsd) ++#if (! (defined(BSD) && (BSD >= 199306))) && !defined(__FreeBSD__) + extern char *sys_errlist[]; + #endif + #endif +@@ -523,7 +523,9 @@ + char *SysErrorMsg(n) + int n; + { ++#ifndef __FreeBSD__ + extern int sys_nerr; ++#endif /* !__FreeBSD__ */ + return ((n >= 0 && n < sys_nerr) ? sys_errlist[n] : UE ); + } + |