From c1f32e821464b66c809a0c1191ff35c2a92230fe Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Wed, 20 Oct 2004 13:47:32 +0000 Subject: [PATCH 1/1] Made ngIRCd compile on HP/UX 10.20 with native HP pre-ANSI C compiler and most probably other older C compilers on other systems. --- ChangeLog | 4 +++- src/ngircd/conf.c | 8 ++++++-- src/ngircd/conn.c | 8 ++++++-- src/ngircd/irc-write.c | 8 ++++++-- src/ngircd/log.c | 8 ++++++-- 5 files changed, 27 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9e4e3a30..f27f9e7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,8 @@ ngIRCd CVSHEAD + - Made ngIRCd compile on HP/UX 10.20 with native HP pre-ANSI C compiler and + most probably other older C compilers on other systems. - Fixed wrong variable names in output of "ngircd --configtest". - Debian: Fxied the name of the "default file" in the init script for ngircd-full packages. And do the test if the binary is executable after @@ -543,4 +545,4 @@ ngIRCd 0.0.1, 31.12.2001 -- -$Id: ChangeLog,v 1.242 2004/09/24 18:00:40 alex Exp $ +$Id: ChangeLog,v 1.243 2004/10/20 13:47:32 alex Exp $ diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index c134cbe6..c87cf590 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -14,12 +14,16 @@ #include "portab.h" -static char UNUSED id[] = "$Id: conf.c,v 1.65 2004/09/24 18:00:40 alex Exp $"; +static char UNUSED id[] = "$Id: conf.c,v 1.66 2004/10/20 13:47:32 alex Exp $"; #include "imp.h" #include #include -#include +#ifdef PROTOTYPES +# include +#else +# include +#endif #include #include #include diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 31f2c1d2..6a9c25f1 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -16,11 +16,15 @@ #include "portab.h" -static char UNUSED id[] = "$Id: conn.c,v 1.139 2004/10/04 23:23:41 alex Exp $"; +static char UNUSED id[] = "$Id: conn.c,v 1.140 2004/10/20 13:47:32 alex Exp $"; #include "imp.h" #include -#include +#ifdef PROTOTYPES +# include +#else +# include +#endif #include #include #include diff --git a/src/ngircd/irc-write.c b/src/ngircd/irc-write.c index 9127ef11..56f9b222 100644 --- a/src/ngircd/irc-write.c +++ b/src/ngircd/irc-write.c @@ -14,11 +14,15 @@ #include "portab.h" -static char UNUSED id[] = "$Id: irc-write.c,v 1.15 2003/11/05 23:24:48 alex Exp $"; +static char UNUSED id[] = "$Id: irc-write.c,v 1.16 2004/10/20 13:47:32 alex Exp $"; #include "imp.h" #include -#include +#ifdef PROTOTYPES +# include +#else +# include +#endif #include #include diff --git a/src/ngircd/log.c b/src/ngircd/log.c index 7fa57255..6fa7a4a7 100644 --- a/src/ngircd/log.c +++ b/src/ngircd/log.c @@ -14,12 +14,16 @@ #include "portab.h" -static char UNUSED id[] = "$Id: log.c,v 1.47 2004/06/26 08:50:44 alex Exp $"; +static char UNUSED id[] = "$Id: log.c,v 1.48 2004/10/20 13:47:32 alex Exp $"; #include "imp.h" #include #include -#include +#ifdef PROTOTYPES +# include +#else +# include +#endif #include #include #include -- 2.39.2