From f0c047e1f40ee2214fe1f73dc3bdc6b0f6de5d85 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Wed, 5 Feb 2003 07:59:09 +0000 Subject: - Changes for compiling with gcc 3.2 --- ncpd/channel.cc | 2 +- ncpd/link.cc | 10 ++++++---- ncpd/linkchan.cc | 6 +++--- ncpd/main.cc | 14 ++++++++------ ncpd/main.h | 2 +- ncpd/mp_serial.h | 6 ++++++ ncpd/ncp.cc | 3 ++- ncpd/packet.cc | 9 ++++----- ncpd/socketchan.cc | 13 ++++++++----- 9 files changed, 39 insertions(+), 26 deletions(-) (limited to 'ncpd') diff --git a/ncpd/channel.cc b/ncpd/channel.cc index d3189e4..5401499 100644 --- a/ncpd/channel.cc +++ b/ncpd/channel.cc @@ -24,7 +24,7 @@ #ifdef HAVE_CONFIG_H #include #endif -#include +#include #include #include "channel.h" diff --git a/ncpd/link.cc b/ncpd/link.cc index 9aab182..84c1d89 100644 --- a/ncpd/link.cc +++ b/ncpd/link.cc @@ -25,18 +25,20 @@ #include "config.h" #endif -#include +#include + +#include +#include +#include + #include #include #include #include -#include #include "link.h" #include "packet.h" #include "ncp.h" -#include "bufferstore.h" -#include "bufferarray.h" #include "main.h" extern "C" { diff --git a/ncpd/linkchan.cc b/ncpd/linkchan.cc index aa21bb1..7c2a231 100644 --- a/ncpd/linkchan.cc +++ b/ncpd/linkchan.cc @@ -21,14 +21,14 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ -#include #include #include +#include +#include + #include "linkchan.h" #include "ncp.h" -#include "bufferstore.h" -#include "bufferarray.h" #include "main.h" using namespace std; diff --git a/ncpd/main.cc b/ncpd/main.cc index 7f2ff3e..4d0595e 100644 --- a/ncpd/main.cc +++ b/ncpd/main.cc @@ -25,9 +25,15 @@ #include "config.h" #endif -#include #include -#include +#include + +#include +#include +#include +#include + +#include #include #include #include @@ -38,14 +44,10 @@ #include #include "ncp.h" -#include "bufferstore.h" -#include "ppsocket.h" #include "socketchan.h" -#include "iowatch.h" #include "linkchan.h" #include "link.h" #include "packet.h" -#include "log.h" #ifndef _GNU_SOURCE #define _GNU_SOURCE diff --git a/ncpd/main.h b/ncpd/main.h index 1af2c9a..ef45414 100644 --- a/ncpd/main.h +++ b/ncpd/main.h @@ -24,7 +24,7 @@ #ifndef _main_h_ #define _main_h_ -#include +#include extern std::ostream lout; extern std::ostream lerr; diff --git a/ncpd/mp_serial.h b/ncpd/mp_serial.h index da559e4..40d465f 100644 --- a/ncpd/mp_serial.h +++ b/ncpd/mp_serial.h @@ -24,8 +24,14 @@ #ifndef _mp_serial_h #define _mp_serial_h +#ifdef __cplusplus +extern "C" { +#endif int init_serial(const char *dev, int speed, int debug); void ser_exit(int fd); +#ifdef __cplusplus +} +#endif #endif diff --git a/ncpd/ncp.cc b/ncpd/ncp.cc index 3507804..1bc39a3 100644 --- a/ncpd/ncp.cc +++ b/ncpd/ncp.cc @@ -25,8 +25,9 @@ #include #endif -#include +#include #include + #include #include diff --git a/ncpd/packet.cc b/ncpd/packet.cc index d352fc9..48f2a5e 100644 --- a/ncpd/packet.cc +++ b/ncpd/packet.cc @@ -25,22 +25,21 @@ #include #endif +#include +#include +#include + #include #include #include #include #include -#include -#include -#include #include #include #include #include -extern "C" { #include "mp_serial.h" -} #include "packet.h" #include "link.h" #include "main.h" diff --git a/ncpd/socketchan.cc b/ncpd/socketchan.cc index d0b22bf..0d74549 100644 --- a/ncpd/socketchan.cc +++ b/ncpd/socketchan.cc @@ -24,17 +24,20 @@ #ifdef HAVE_CONFIG_H #include #endif -#include + +#include + +#include +#include + #include -#include #include #include "socketchan.h" #include "ncp.h" -#include -#include +#include "main.h" -extern std::ostream lerr; +using namespace std; socketChan:: socketChan(ppsocket * _skt, ncp * _ncpController): channel(_ncpController) -- cgit v1.2.3