summaryrefslogtreecommitdiff
path: root/lang/icon/patches/patch-af
blob: d4ba0ab4fa0da5fcf043db14a4ce94eadf7a9fab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-af,v 1.3 1999/11/15 19:23:39 rh Exp $

--- src/runtime/fload.r.orig	Fri Feb 13 15:12:48 1998
+++ src/runtime/fload.r	Mon Nov 15 20:19:05 1999
@@ -24,6 +24,10 @@
 
 #ifdef FreeBSD
 
+/* Look at the DL_GETERRNO constant, if it exists this is FreeBSD 1.1.5
+   or 2.0. If it doesn't exist this must be post 2.0 with an dlerror */
+
+#passthru #ifdef DL_GETERRNO
 /* Sorry, no dlerror() on FreeBSD. Fake it. */
 char *dlerror(void)
 {
@@ -34,6 +38,7 @@
     else
         return(NULL);
 }
+#passthru #endif
 
 #endif					/* __FreeBSD__ */