Commit a204ad1c authored by damienf's avatar damienf
Browse files

compile fix for WIN32, needs review

parent a09124b7
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
# define AF_LOCAL AF_UNIX # define AF_LOCAL AF_UNIX
#endif #endif
#ifdef AF_LOCAL #if defined(AF_LOCAL) && ! defined(WIN32)
# include <sys/un.h> # include <sys/un.h>
#endif #endif
...@@ -186,7 +186,7 @@ static int Activate( vlc_object_t *p_this ) ...@@ -186,7 +186,7 @@ static int Activate( vlc_object_t *p_this )
{ {
int i_socket; int i_socket;
#ifndef AF_LOCAL #if !defined(AF_LOCAL) || defined(WIN32)
msg_Warn( p_intf, "your OS doesn't support filesystem sockets" ); msg_Warn( p_intf, "your OS doesn't support filesystem sockets" );
free( psz_unix_path ); free( psz_unix_path );
return VLC_EGENERIC; return VLC_EGENERIC;
...@@ -313,7 +313,7 @@ static void Deactivate( vlc_object_t *p_this ) ...@@ -313,7 +313,7 @@ static void Deactivate( vlc_object_t *p_this )
net_Close( p_intf->p_sys->i_socket ); net_Close( p_intf->p_sys->i_socket );
if( p_intf->p_sys->psz_unix_path != NULL ) if( p_intf->p_sys->psz_unix_path != NULL )
{ {
#ifdef AF_LOCAL #if defined(AF_LOCAL) && !defined(WIN32)
unlink( p_intf->p_sys->psz_unix_path ); unlink( p_intf->p_sys->psz_unix_path );
#endif #endif
free( p_intf->p_sys->psz_unix_path ); free( p_intf->p_sys->psz_unix_path );
......
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