summaryrefslogtreecommitdiff
path: root/lang/gcl/files/patch-al
blob: cdc5ae57c902b1f8804a87627911e27b4d4b5917 (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
--- o/sfaslelf.c.orig	Thu Nov 25 01:28:03 1999
+++ o/sfaslelf.c	Thu Nov 25 01:31:36 1999
@@ -15,7 +15,7 @@
 
 */
 
-#ifndef __linux__
+#if !(defined(__linux__) || defined(__FreeBSD__))
 #define ELF_TARGET_SPARC 1
 #endif
 
@@ -373,7 +373,7 @@
     *(unsigned int *)where += ((val & mask) | ((*(unsigned int *)where) & ~mask))
     
     switch(ELF32_R_TYPE(reloc_info->r_info)){
-#if (defined(__svr4__) || defined(__linux__)) && defined(__i386__)
+#if (defined(__svr4__) || defined(__linux__) || defined(__FreeBSD__)) && defined(__i386__)
     case     R_386_NONE:
       FEerror("Unsupported ELF type R_386_NONE");
       break;
@@ -420,9 +420,11 @@
       FEerror("Unsupported ELF type R_386_GOTPC");
       break;
 
+#ifdef R_386_NUM
     case     R_386_NUM:
       FEerror("Unsupported ELF type R_386_NUM");
       break;
+#endif
 
 #else
     case     R_SPARC_WDISP30: