summaryrefslogtreecommitdiff
path: root/lang/icon/patches/patch-af
blob: 4f382148344be7d7d3615df2217c396d8ccdf554 (plain)
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
$NetBSD: patch-af,v 1.2 1998/08/07 11:09:05 agc Exp $

*** src/runtime/fload.r.orig	Fri Jul 29 21:22:51 1994
--- src/runtime/fload.r	Sun Apr 16 14:02:26 1995
***************
*** 24,29 ****
--- 24,33 ----
  
  #ifdef GenericBSD
  
+ /* 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,39 ****
--- 38,44 ----
      else
          return(NULL);
  }
+ #passthru #endif
  
  #endif					/* __FreeBSD__ */