- add win32. Code from Don Becker.

This commit is contained in:
Bryce Denney 2001-10-01 03:52:10 +00:00
parent ddb2c85b06
commit c38d1a046a

View File

@ -50,6 +50,9 @@ extern class bx_fbsd_locator_c bx_fbsd_match;
#ifdef ETH_LINUX
extern class bx_linux_locator_c bx_linux_match;
#endif
#ifdef ETH_WIN32
extern class bx_win32_locator_c bx_win32_match;
#endif
#ifdef ETH_TEST
extern bx_test_match;
#endif
@ -98,6 +101,12 @@ eth_locator_c::create(const char *type, const char *netif,
ptr = (eth_locator_c *) &bx_linux_match;
}
#endif
#ifdef ETH_WIN32
{
if(!strcmp(type, "win32"))
ptr = (eth_locator_c *) &bx_win32_match;
}
#endif
#ifdef ETH_TEST
{
if (!strcmp(type, "test"))