r192: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Thu, 7 Sep 2000 04:31:41 +0000 (04:31 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Thu, 7 Sep 2000 04:31:41 +0000 (04:31 +0000)
configure.in
libctsupport/syserror.cpp

index 78a67130d2734279b6f8a61dd49c32f6efb69c7f..ee4bc51bdbd4163357947f9e4801bd7d4d995636 100644 (file)
@@ -99,7 +99,7 @@ AC_STRUCT_TM
 
 dnl Checks for library functions.
 AC_FUNC_VPRINTF
-AC_CHECK_FUNCS(strtod strtol snprintf htonl usleep)
+AC_CHECK_FUNCS(strtod strtol snprintf htonl usleep vsprintf vsnprintf)
 AC_CHECK_FUNC(basename)
 AC_CHECK_FUNC(setjmp)
 AC_CHECK_FUNC(setpriority)
index 939f024bee0b29a6a6bfcb99a4b9ee7fe7bb276f..6d0900dcda89511de3eb3c7c3286246bb7ce78b1 100644 (file)
@@ -2,7 +2,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: syserror.cpp,v 1.5 2000/08/31 08:38:58 kevin Exp $
+**  $Id: syserror.cpp,v 1.6 2000/09/07 04:31:41 kevin Exp $
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -85,11 +85,16 @@ void sys_verror (int severity, const char *msg, va_list arg)
     cout << "WARNING ERROR: ";
     break;
   default:
-    sys_error (ERR_FATAL, "illegal error code #%d  [sys_error]", severity);
+    cout << "Illegal error code #" << severity << ": ";
   }
   
   char errStr[512];
+#if HAVE_VSNPRINTF
   vsnprintf (errStr, sizeof(errStr), msg, arg);
+#elif HAVE_VSPRINTF
+  vsprintf (errStr, msg, arg);
+#endif
+
   cout << errStr << endl;
   
   if (severity == ERR_FATAL)