- define execute_script function only when tap or tuntap is used

- add wait.h to fix compile problems
- output log info through ne2k device
This commit is contained in:
Christophe Bothamy 2003-04-28 13:01:09 +00:00
parent b2e98b3372
commit f8d2f7b701

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: eth.cc,v 1.15 2003-04-26 14:48:45 cbothamy Exp $
// $Id: eth.cc,v 1.16 2003-04-28 13:01:09 cbothamy Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
@ -149,6 +149,16 @@ eth_locator_c::create(const char *type, const char *netif,
return (NULL);
}
#if (HAVE_ETHERTAP==1) || (HAVE_TUNTAP==1)
extern "C" {
#include <sys/wait.h>
};
#undef LOG_THIS
#define LOG_THIS bx_devices.pluginNE2kDevice->
// This is a utility script used for tuntap or ethertap
int execute_script( char* scriptname, char* arg1 )
{
int pid,status;
@ -179,4 +189,6 @@ int execute_script( char* scriptname, char* arg1 )
return WEXITSTATUS(status);
}
#endif // (HAVE_ETHERTAP==1) || (HAVE_TUNTAP==1)
#endif /* if BX_NE2K_SUPPORT */