From 42dab5d81deed515841fdcc9fc8de03daaf6a9c1 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Sun, 19 Feb 2012 22:13:41 +0100 Subject: [PATCH] Fix Windows compile issue. --- utils/TerraSync/terrasync.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/TerraSync/terrasync.cxx b/utils/TerraSync/terrasync.cxx index ee4aca02f..f8b8b2551 100644 --- a/utils/TerraSync/terrasync.cxx +++ b/utils/TerraSync/terrasync.cxx @@ -86,9 +86,12 @@ usage( const string& prog ) { " -e transport using external svn client\n" " -p listen on UDP port [default: 5501]\n" " -s source base [default: '']\n" +#ifndef _MSC_VER " -pid write PID to file\n" +#endif " -v be more verbose\n"; +#ifndef _MSC_VER cout << "\n" "Example:\n" " pid=$(cat $pidfile 2>/dev/null)\n" @@ -98,6 +101,7 @@ usage( const string& prog ) { " nice /games/sport/fgs/utils/TerraSync/terrasync \\\n" " -v -pid $pidfile -S -p 5500 -d /games/orig/terrasync &\n" " fi\n"; +#endif } /** Signal handler for termination requests (Ctrl-C) */ @@ -338,6 +342,7 @@ int main( int argc, char **argv ) if (verbose) sglog().setLogLevels( SG_ALL, SG_INFO); +#ifndef _MSC_VER // create PID file if (*pidfn) { @@ -352,6 +357,7 @@ int main( int argc, char **argv ) pidstream << getpid() << endl; pidstream.close(); } +#endif // install signal handlers for (int* sigp=termination_triggering_signals; *sigp; sigp++)