List:Commits« Previous MessageNext Message »
From:jonas oreland Date:December 1 2010 5:30pm
Subject:bzr commit into mysql-5.1-telco-7.0 branch (jonas:4039)
View as plain text  
#At file:///home/jonas/src/telco-7.0/ based on revid:jonas@stripped

 4039 jonas oreland	2010-12-01
      ndb - attempt to escape windows-include using defines for _getpid()

    modified:
      storage/ndb/src/mgmsrv/testConfig.cpp
=== modified file 'storage/ndb/src/mgmsrv/testConfig.cpp'
--- a/storage/ndb/src/mgmsrv/testConfig.cpp	2010-12-01 13:36:29 +0000
+++ b/storage/ndb/src/mgmsrv/testConfig.cpp	2010-12-01 17:30:03 +0000
@@ -146,15 +146,9 @@ create_config(const char* first, ...)
 // Global variable for my_getopt
 extern "C" const char* my_defaults_file;
 
-#ifdef _WIN32
-#include <process.h>
-#else
-#include <unistd.h>
-#endif
-
 static
 unsigned
-pid()
+ndb_procid()
 {
 #ifdef _WIN32
   return (unsigned)_getpid();
@@ -171,7 +165,7 @@ create_mycnf(const char* first, ...)
   NdbDir::Temp tempdir;
   BaseString mycnf_file;
   mycnf_file.assfmt("%s%stest_my.%u.cnf",
-                    tempdir.path(), DIR_SEPARATOR, pid());
+                    tempdir.path(), DIR_SEPARATOR, ndb_procid());
 
   FILE* config_file= fopen(mycnf_file.c_str(), "w+");
   CHECK(config_file);


Attachment: [text/bzr-bundle] bzr/jonas@mysql.com-20101201173003-corckx1764z4za6w.bundle
Thread
bzr commit into mysql-5.1-telco-7.0 branch (jonas:4039) jonas oreland1 Dec