repo: ngircd
action: commit
revision: 
path_from: 
revision_from: aee48a3b38817828b8710ebfc6f189f29822a056:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit aee48a3b38817828b8710ebfc6f189f29822a056
Author: Florian Westphal 
Date:   Sat Apr 16 09:31:30 2005 +0000

    added kludge to make ngircd (with syslog) compile on mips-dec-ultrix4.5

diff --git a/src/ngircd/log.c b/src/ngircd/log.c
index 62113f11e77ca6435a4afdb6d1844395380cab67..
index ..3cb394bdc47ec1484fa73f35b987109a43e6f575 100644
--- a/src/ngircd/log.c
+++ b/src/ngircd/log.c
@@ -14,7 +14,7 @@

 #include "portab.h"

-static char UNUSED id[] = "$Id: log.c,v 1.53 2005/03/19 18:43:49 fw Exp $";
+static char UNUSED id[] = "$Id: log.c,v 1.54 2005/04/16 09:31:30 fw Exp $";

 #include "imp.h"
 #include 
@@ -58,6 +58,12 @@ GLOBAL void
 Log_Init( void )
 {
 #ifdef SYSLOG
+#ifndef LOG_CONS	/* Kludge: mips-dec-ultrix4.5 has no LOG_CONS/LOG_LOCAL5 */
+#define LOG_CONS 0
+#endif
+#ifndef LOG_LOCAL5
+#define LOG_LOCAL5 0
+#endif
 	/* Syslog initialisieren */
 	openlog( PACKAGE_NAME, LOG_CONS|LOG_PID, LOG_LOCAL5 );
 #endif

-----END OF PAGE-----