mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 22:00:31 -04:00
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>
25 lines
723 B
Text
25 lines
723 B
Text
--- 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 );
|
|
}
|
|
|