Browse Source

* use closesocket and not fdClose for netware

armin 22 years ago
parent
commit
0dd3115ccc
1 changed files with 12 additions and 1 deletions
  1. 12 1
      fcl/inc/ssockets.pp

+ 12 - 1
fcl/inc/ssockets.pp

@@ -219,7 +219,11 @@ end;
 
 
 destructor TSocketStream.Destroy;
 destructor TSocketStream.Destroy;
 begin
 begin
+  {$ifdef netware}
+  CloseSocket(Handle);
+  {$else}
   FileClose(Handle);
   FileClose(Handle);
+  {$endif}
   inherited Destroy;
   inherited Destroy;
 end;
 end;
 
 
@@ -280,7 +284,11 @@ Procedure TSocketServer.Close;
 
 
 begin
 begin
   If FSocket<>-1 Then
   If FSocket<>-1 Then
+    {$ifdef netware}
+    CloseSocket(FSocket);
+    {$else}
     FileClose(FSocket);
     FileClose(FSocket);
+    {$endif}
   FSocket:=-1;
   FSocket:=-1;
 end;
 end;
 
 
@@ -560,7 +568,10 @@ end.
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.18  2003-03-21 23:10:24  armin
+  Revision 1.19  2003-03-25 17:47:06  armin
+  * use closesocket and not fdClose for netware
+
+  Revision 1.18  2003/03/21 23:10:24  armin
   * changed defines not win32 to not Unix (Netware is not Unix nor win32)
   * changed defines not win32 to not Unix (Netware is not Unix nor win32)
 
 
   Revision 1.17  2003/03/11 13:15:40  michael
   Revision 1.17  2003/03/11 13:15:40  michael