Commit 0a6dc337 authored by Christophe Massiot's avatar Christophe Massiot

FreeBSD fixes, patch courtesy of Ed Maste.

parent 83af6e18
......@@ -264,7 +264,7 @@ void real_Sleep( uint64_t i_delay )
*****************************************************************************/
static int GetInterfaceIndex( const char *psz_name )
{
#if !defined(__FreeBSD__) && !defined(__APPLE__)
#if !defined(__APPLE__)
int i_fd;
struct ifreq ifr;
......@@ -285,7 +285,11 @@ static int GetInterfaceIndex( const char *psz_name )
close( i_fd );
#if defined(__FreeBSD__)
return ifr.ifr_index;
#else
return ifr.ifr_ifindex;
#endif
#else
return 0;
#endif
......
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