Browse Source

* libdl not imported under *BSD

marco 22 years ago
parent
commit
261152bc92
2 changed files with 11 additions and 4 deletions
  1. 3 1
      fcl/db/interbase/README
  2. 8 3
      fcl/db/interbase/testib.pp

+ 3 - 1
fcl/db/interbase/README

@@ -44,7 +44,9 @@ testib.pp(92,1) Warning: Error while linking
 
 you must to program source add compiler directives
 
-{$linklib dl}
+{$ifndef BSD}		// BSD has libdl in libc
+ {$linklib dl}	
+{$endif}
 {$linklib crypt}
 
 and all should be OK. For running testib you must have

+ 8 - 3
fcl/db/interbase/testib.pp

@@ -15,8 +15,10 @@
 
 program TestIB;
 
-{$ifdef linux}
-{$linklib dl}
+{$ifdef unix}
+ {$ifndef BSD}		// BSD has libdl built in libc
+  {$linklib dl}
+ {$endif}
 {$linklib crypt}
 {$endif}
 
@@ -92,7 +94,10 @@ end.
 
 {
   $Log$
-  Revision 1.5  2003-07-19 15:36:24  michael
+  Revision 1.6  2003-08-09 15:15:26  marco
+   * libdl not imported under *BSD
+
+  Revision 1.5  2003/07/19 15:36:24  michael
   + dl and crypt only needed on Linux
 
   Revision 1.4  2002/09/07 15:15:23  peter