[Box Backup-commit] COMMIT r2930 - in box/trunk/lib: common server
subversion at boxbackup.org
subversion at boxbackup.org
Wed Apr 20 14:27:05 BST 2011
Author: chris
Date: 2011-04-20 14:27:04 +0100 (Wed, 20 Apr 2011)
New Revision: 2930
Modified:
box/trunk/lib/common/Logging.cpp
box/trunk/lib/server/Daemon.cpp
Log:
Include <process.h> to get a definition for getpid() from the Windows CRT,
to replace the emulated one in emu.cpp.
Modified: box/trunk/lib/common/Logging.cpp
===================================================================
--- box/trunk/lib/common/Logging.cpp 2011-04-20 13:17:33 UTC (rev 2929)
+++ box/trunk/lib/common/Logging.cpp 2011-04-20 13:27:04 UTC (rev 2930)
@@ -22,6 +22,9 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#ifdef WIN32
+ #include <process.h>
+#endif
#include <cstring>
#include <iomanip>
Modified: box/trunk/lib/server/Daemon.cpp
===================================================================
--- box/trunk/lib/server/Daemon.cpp 2011-04-20 13:17:33 UTC (rev 2929)
+++ box/trunk/lib/server/Daemon.cpp 2011-04-20 13:27:04 UTC (rev 2930)
@@ -25,6 +25,7 @@
#ifdef WIN32
#include <ws2tcpip.h>
+ #include <process.h>
#endif
#include <iostream>
More information about the Boxbackup-commit
mailing list