summaryrefslogtreecommitdiff
path: root/math/Scilab/files/patch-ag
blob: 4cfdec2b65c29a61178df396b5d6898f69c7ba5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- routines/sun/link_SYSV.c.orig	Tue Oct 13 08:27:18 1998
+++ routines/sun/link_SYSV.c	Sat Dec 19 23:54:03 1998
@@ -34,5 +34,5 @@
 #endif
 
-#ifdef linux 
+#if defined(linux) || defined(netbsd) || defined(freebsd)
 #include <unistd.h>
 #include <sys/wait.h>
@@ -41,4 +41,5 @@
 #ifndef linux
 #ifndef hppa
+#if (!defined(netbsd) && !defined(freebsd))
 #if (defined(sun) && ! defined(SYSV)) 
 #else 
@@ -47,6 +48,7 @@
 #endif
 #endif 
+#endif
 
-#ifndef linux 
+#if  !defined(linux) && !defined(netbsd)
 #ifdef __alpha
 #include <c_asm.h>
@@ -59,7 +61,9 @@
 #endif
 
+#if !defined(netbsd)
 #if defined  __alpha || defined sgi
 #include <a.out.h>
 #endif
+#endif
 
 #include <string.h>
@@ -264,8 +268,12 @@
        "/usr/bin/ld", "-shared", "-o", 0, 0  
 #else
+#if defined(netbsd) || defined(freebsd)
+	"/usr/bin/ld", "-Bshareable", "-o", 0, 0
+#else
 #ifdef hppa
        "/bin/ld", "-b", "-o", 0, 0
 #else
        "/bin/ld", "-shared", "-o", 0, 0  
+#endif
 #endif
 #endif