1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-11-17 05:57:12 +00:00

- der System-Typ wird nun wieder korrekt ermittelt und verwendet.

This commit is contained in:
Alexander Barton
2002-03-12 15:19:12 +00:00
parent 7633e2f8c3
commit 7049b60af4
5 changed files with 30 additions and 11 deletions

View File

@@ -9,7 +9,7 @@
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
* $Id: messages.h,v 1.35 2002/03/12 14:37:52 alex Exp $
* $Id: messages.h,v 1.36 2002/03/12 15:19:12 alex Exp $
*
* irc.h: IRC-Befehle (Header)
*/
@@ -23,7 +23,7 @@
#define RPL_WELCOME_MSG RPL_WELCOME" %s :Welcome to the Internet Relay Network %s"
#define RPL_YOURHOST "002"
#define RPL_YOURHOST_MSG RPL_YOURHOST" %s :Your host is %s, running ngircd "VERSION"-"P_OSNAME"/"P_ARCHNAME
#define RPL_YOURHOST_MSG RPL_YOURHOST" %s :Your host is %s, running ngircd "VERSION"-"TARGET_OS"/"TARGET_CPU
#define RPL_CREATED "003"
#define RPL_CREATED_MSG RPL_CREATED" %s :This server was started %s"

View File

@@ -9,7 +9,7 @@
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
* $Id: ngircd.c,v 1.32 2002/03/12 14:37:52 alex Exp $
* $Id: ngircd.c,v 1.33 2002/03/12 15:19:12 alex Exp $
*
* ngircd.c: Hier beginnt alles ;-)
*/
@@ -271,7 +271,7 @@ GLOBAL CHAR *NGIRCd_VersionAddition( VOID )
#endif
if( txt[0] ) strcat( txt, "-" );
strcat( txt, P_OSNAME"/"P_ARCHNAME );
strcat( txt, TARGET_OS"/"TARGET_CPU );
return txt;
} /* NGIRCd_VersionAddition */

View File

@@ -9,7 +9,7 @@
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
* $Id: portab.h,v 1.1 2002/03/12 14:36:44 alex Exp $
* $Id: portab.h,v 1.2 2002/03/12 15:19:12 alex Exp $
*
* portab.h: "Portabilitaets-Definitionen"
*/
@@ -80,8 +80,17 @@ typedef UINT8 BOOLEAN;
/* Konstanten */
#define P_OSNAME "unknown"
#define P_ARCHNAME "unknown"
#ifndef TARGET_OS
#define TARGET_OS "unknown"
#endif
#ifndef TARGET_CPU
#define TARGET_CPU "unknown"
#endif
#ifndef TARGET_VENDOR
#define TARGET_VENDOR "unknown"
#endif
#endif

View File

@@ -9,7 +9,7 @@
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
*
* $Id: portabtest.c,v 1.1 2002/03/12 14:36:44 alex Exp $
* $Id: portabtest.c,v 1.2 2002/03/12 15:19:12 alex Exp $
*
* portabtest.c: Testprogramm fuer portab.h
*/
@@ -38,7 +38,7 @@ GLOBAL INT main( VOID )
}
else puts( "ok." );
puts( "- system type: "P_OSNAME"/"P_ARCHNAME );
puts( "- system type: "TARGET_OS"/"TARGET_CPU );
return ret;
} /* main */