[Box Backup-commit] COMMIT r2200 - box/trunk/lib/common
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Sun, 6 Jul 2008 15:31:48 +0100 (BST)
Author: chris
Date: 2008-07-06 15:31:48 +0100 (Sun, 06 Jul 2008)
New Revision: 2200
Modified:
box/trunk/lib/common/Logging.cpp
Log:
Fix includes to get getpid() on Solaris and to make them easier to read.
Modified: box/trunk/lib/common/Logging.cpp
===================================================================
--- box/trunk/lib/common/Logging.cpp 2008-07-06 14:30:18 UTC (rev 2199)
+++ box/trunk/lib/common/Logging.cpp 2008-07-06 14:31:48 UTC (rev 2200)
@@ -16,12 +16,14 @@
#ifdef HAVE_SYSLOG_H
#include <syslog.h>
#endif
+#ifdef HAVE_UNISTD_H
+ #include <unistd.h>
+#endif
-#include "Logging.h"
-
#include <iomanip>
#include "BoxTime.h"
+#include "Logging.h"
bool Logging::sLogToSyslog = false;
bool Logging::sLogToConsole = false;