Commit 52f2126b authored by Gildas Bazin's avatar Gildas Bazin

* modules/misc/sap.c: fixed win32 breakage.
parent 260e120d
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* sap.c : SAP interface module * sap.c : SAP interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: sap.c,v 1.25 2003/10/08 10:07:22 zorglub Exp $ * $Id: sap.c,v 1.26 2003/10/08 18:26:58 gbazin Exp $
* *
* Authors: Arnaud Schauly <gitan@via.ecp.fr> * Authors: Arnaud Schauly <gitan@via.ecp.fr>
* Clment Stenac <zorglub@via.ecp.fr> * Clment Stenac <zorglub@via.ecp.fr>
...@@ -65,9 +65,9 @@ ...@@ -65,9 +65,9 @@
#endif #endif
#ifdef UNDER_CE #ifdef UNDER_CE
# define close(a) CloseHandle(a); # define close(a) CloseHandle(a)
#elif defined( WIN32 ) #elif defined( WIN32 )
# define close(a) closesocket(a); # define close(a) closesocket(a)
#endif #endif
#include "network.h" #include "network.h"
...@@ -326,14 +326,14 @@ static void Run( intf_thread_t *p_intf ) ...@@ -326,14 +326,14 @@ static void Run( intf_thread_t *p_intf )
{ {
if( close( fd ) ) if( close( fd ) )
{ {
msg_Warn( p_intf, "Ohoh, unable to close the socket") ; msg_Warn( p_intf, "Ohoh, unable to close the socket" );
} }
} }
if( fdv6 ) if( fdv6 )
{ {
if( close( fdv6 ) ) if( close( fdv6 ) )
{ {
msg_Warn( p_intf, "Ohoh, unable to close the socket") ; msg_Warn( p_intf, "Ohoh, unable to close the socket" );
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment