]> git.sesse.net Git - vlc/commitdiff
compile fix for WIN32, needs review
authorDamien Fouilleul <damienf@videolan.org>
Mon, 4 Jul 2005 09:55:51 +0000 (09:55 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Mon, 4 Jul 2005 09:55:51 +0000 (09:55 +0000)
modules/control/rc.c

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