summary refs log tree commit diff
path: root/src/portab
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2002-03-12 15:19:12 +0000
committerAlexander Barton <alex@barton.de>2002-03-12 15:19:12 +0000
commit7049b60af48382ce5f4623d32c5fca6d0c9f4fc5 (patch)
tree3bbda1088cbc9bb33ab9dd7ebd80f5f5ca4d5169 /src/portab
parent7633e2f8c3747d1c8ca6b642f0b390ebbed4690e (diff)
downloadngircd-7049b60af48382ce5f4623d32c5fca6d0c9f4fc5.tar.gz
ngircd-7049b60af48382ce5f4623d32c5fca6d0c9f4fc5.zip
- der System-Typ wird nun wieder korrekt ermittelt und verwendet.
Diffstat (limited to 'src/portab')
-rw-r--r--src/portab/portab.h15
-rw-r--r--src/portab/portabtest.c4
2 files changed, 14 insertions, 5 deletions
diff --git a/src/portab/portab.h b/src/portab/portab.h
index 8522441b..779b9a3b 100644
--- a/src/portab/portab.h
+++ b/src/portab/portab.h
@@ -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
diff --git a/src/portab/portabtest.c b/src/portab/portabtest.c
index 29ea7f60..8c3c44b4 100644
--- a/src/portab/portabtest.c
+++ b/src/portab/portabtest.c
@@ -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 */