Browse Source

bsd support

marco 22 years ago
parent
commit
cdbe222922
1 changed files with 4 additions and 0 deletions
  1. 4 0
      rtl/unix/dl.pp

+ 4 - 0
rtl/unix/dl.pp

@@ -3,7 +3,11 @@ Unit dl;
 Interface
 Interface
 
 
 Const
 Const
+ {$ifdef BSD}	// dlopen is in libc on FreeBSD.
+  LibDL = 'c';
+ {$else}
   LibDL = 'dl';
   LibDL = 'dl';
+{$endif}
 
 
   RTLD_LAZY         = $001;
   RTLD_LAZY         = $001;
   RTLD_NOW          = $002;
   RTLD_NOW          = $002;