summaryrefslogtreecommitdiff
path: root/math/scilab/patches/patch-ak
diff options
context:
space:
mode:
Diffstat (limited to 'math/scilab/patches/patch-ak')
-rw-r--r--math/scilab/patches/patch-ak21
1 files changed, 21 insertions, 0 deletions
diff --git a/math/scilab/patches/patch-ak b/math/scilab/patches/patch-ak
new file mode 100644
index 00000000000..295554cb0f0
--- /dev/null
+++ b/math/scilab/patches/patch-ak
@@ -0,0 +1,21 @@
+$NetBSD: patch-ak,v 1.1 1998/08/25 12:53:09 agc Exp $
+
+--- ./routines/metanet/saveg.c.orig Sat Aug 8 14:01:11 1998
++++ ./routines/metanet/saveg.c Sat Aug 8 14:06:07 1998
+@@ -1,4 +1,7 @@
+ #include <stdio.h>
+ #ifndef __MSC__
++#ifdef __FreeBSD__
++#include <sys/types.h>
++#endif
+ #include <dirent.h>
+ #endif
+@@ -13,4 +16,8 @@
+ /** only used for x=dir[1024] **/
+ #define getwd(x) _getcwd(x,1024)
++#endif
++
++#if defined(netbsd) || defined(freebsd)
++#include <unistd.h>
+ #endif
+