projects
/
gnucomo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
734da39
)
Fixed a gcc 2 vs. gcc 3 problem
author
arjen
<arjen>
Sat, 16 Aug 2003 15:30:19 +0000
(15:30 +0000)
committer
arjen
<arjen>
Sat, 16 Aug 2003 15:30:19 +0000
(15:30 +0000)
src/gcm_input/gcm_input.cpp
patch
|
blob
|
history
diff --git
a/src/gcm_input/gcm_input.cpp
b/src/gcm_input/gcm_input.cpp
index
137fb69
..
9102cdd
100644
(file)
--- a/
src/gcm_input/gcm_input.cpp
+++ b/
src/gcm_input/gcm_input.cpp
@@
-7,7
+7,7
@@
***********************
** FILE NAME : gcm_input.cpp
** SYSTEM NAME : Gnucomo - Gnu Computer Monitoring
***********************
** FILE NAME : gcm_input.cpp
** SYSTEM NAME : Gnucomo - Gnu Computer Monitoring
-** VERSION NUMBER : $Revision: 1.
7
$
+** VERSION NUMBER : $Revision: 1.
8
$
**
** DESCRIPTION : Application to store client messages into the database
** The client message contains a log file from one of the
**
** DESCRIPTION : Application to store client messages into the database
** The client message contains a log file from one of the
@@
-54,7
+54,10
@@
/*****************************
$Log: gcm_input.cpp,v $
/*****************************
$Log: gcm_input.cpp,v $
- Revision 1.7 2003-08-14 10:28:37 arjen
+ Revision 1.8 2003-08-16 15:30:19 arjen
+ Fixed a gcc 2 vs. gcc 3 problem
+
+ Revision 1.7 2003/08/14 10:28:37 arjen
Use parameters from a new section 'logging' with three configuration parameters:
method - Output method to use for logging.
destination - Name of the log output destination.
Use parameters from a new section 'logging' with three configuration parameters:
method - Output method to use for logging.
destination - Name of the log output destination.
@@
-90,7
+93,7
@@
*****************************/
*****************************/
-static const char *RCSID = "$Id: gcm_input.cpp,v 1.
7 2003-08-14 10:28:37
arjen Exp $";
+static const char *RCSID = "$Id: gcm_input.cpp,v 1.
8 2003-08-16 15:30:19
arjen Exp $";
#include <fstream>
#include <fstream>
@@
-208,8
+211,11
@@
int main(int argc, char *argv[])
if (log_method == "file" && log_destination != "")
{
std::cerr << "Logging to " << log_destination << ".\n";
if (log_method == "file" && log_destination != "")
{
std::cerr << "Logging to " << log_destination << ".\n";
+#if __GNUC__ == 2
logfile.open(log_destination, _IO_APPEND); // for gcc 2
logfile.open(log_destination, _IO_APPEND); // for gcc 2
- //logfile.open(logfile_name, std::ios_base::app); // for gcc 3
+#else
+ logfile.open(log_destination, std::ios_base::app); // for gcc 3
+#endif
if (!logfile)
{
std::cerr << "Can't open logfile " << log_destination << " for writing.\n";
if (!logfile)
{
std::cerr << "Can't open logfile " << log_destination << " for writing.\n";