Changeset - e910508a9cc9
[Not reviewed]
0 1 0
HanzZ - 13 years ago 2012-03-20 22:45:41
hanzz.k@gmail.com
define getpid on windows
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/logging.cpp
Show inline comments
 
@@ -34,24 +34,26 @@
 
#include "log4cxx/helpers/transcoder.h"
 
#include <boost/filesystem.hpp>
 
#include <boost/algorithm/string.hpp>
 

	
 
#ifndef WIN32
 
#include "sys/signal.h"
 
#include <pwd.h>
 
#include <grp.h>
 
#include <sys/resource.h>
 
#include "libgen.h"
 
#else
 
#include <windows.h>
 
#include <process.h>
 
#define getpid _getpid
 
#endif
 

	
 
using namespace boost::filesystem;
 
using namespace log4cxx;
 

	
 
namespace Transport {
 

	
 
namespace Logging {
 

	
 
static LoggerPtr root;
 

	
 
static void initLogging(Config *config, std::string key) {
0 comments (0 inline, 0 general)