--- net-mgmt/annextools/files/patch-erpcd::erpcd.c 2003-09-25 21:49:31.000000000 +0200 +++ net-mgmt/annextools/files/patch-erpcd::erpcd.c 2008-01-27 16:50:47.000000000 +0100 @@ -1,5 +1,14 @@ --- erpcd/erpcd.c.orig Sat Jan 31 17:38:06 1998 +++ erpcd/erpcd.c Thu Sep 18 20:10:32 2003 +@@ -36,7 +36,7 @@ + #include + #include + #include +-#include ++#include + #include + #else + #include @@ -2108,11 +2108,7 @@ { int savederrno = errno; --- net-mgmt/annextools/files/patch-netadm::dialout.c 1970-01-01 01:00:00.000000000 +0100 +++ net-mgmt/annextools/files/patch-netadm::dialout.c 2008-01-27 16:50:47.000000000 +0100 @@ -0,0 +1,17 @@ +--- netadm/dialout.c 2008-01-27 16:29:09.000000000 +0100 ++++ netadm/dialout.c 2008-01-27 16:36:23.000000000 +0100 +@@ -66,14 +66,6 @@ + + #include + +-#ifdef SYS_V +-#include +-#else +-#ifndef _WIN32 +-#include +-#endif +-#endif +- + #include "../inc/courier/courier.h" + #include "../inc/erpc/netadmp.h" + --- net-mgmt/annextools/files/patch-netadm::rpc.c 1970-01-01 01:00:00.000000000 +0100 +++ net-mgmt/annextools/files/patch-netadm::rpc.c 2008-01-27 16:50:47.000000000 +0100 @@ -0,0 +1,61 @@ +--- netadm/rpc.c 2008-01-27 16:29:09.000000000 +0100 ++++ netadm/rpc.c 2008-01-27 16:34:49.000000000 +0100 +@@ -35,7 +35,9 @@ + + #include + +-#ifdef SYS_V ++#ifdef __FreeBSD__ ++#include ++#elif defined(SYS_V) + #include + #else + #ifndef _WIN32 +@@ -749,7 +751,9 @@ + { + + #ifndef _WIN32 +-#ifdef SYS_V ++#ifdef __FreeBSD__ ++ struct termios tio; ++#elif defined(SYS_V) + struct termio tio; + #else + struct sgttyb sg; +@@ -762,7 +766,11 @@ + + fd = fileno(rfp); + +-#ifdef SYS_V ++#ifdef __FreeBSD__ ++ tcgetattr(fd, &tio); ++ tio.c_lflag &= ~(ECHO); ++ tcsetattr(fd, TCSANOW, &tio); ++#elif defined(SYS_V) + (void)ioctl(fd, (int)TCGETA, &tio); + tio.c_lflag &= ~(ECHO); + (void)ioctl(fd, (int)TCSETA, &tio); +@@ -779,7 +787,9 @@ + void devttyecho() /* turn echo on */ + { + #ifndef _WIN32 +-#ifdef SYS_V ++#ifdef __FreeBSD__ ++ struct termios tio; ++#elif defined(SYS_V) + struct termio tio; + #else + struct sgttyb sg; +@@ -792,7 +802,11 @@ + + fd = fileno(rfp); + +-#ifdef SYS_V ++#ifdef __FreeBSD__ ++ tcgetattr(fd, &tio); ++ tio.c_lflag |= ECHO; ++ tcsetattr(fd, TCSANOW, &tio); ++#elif defined(SYS_V) + (void)ioctl(fd, (int)TCGETA, &tio); + tio.c_lflag |= ECHO; + (void)ioctl(fd, (int)TCSETA, &tio);