diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-07-06 14:31:48 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-07-06 14:31:48 +0000 |
commit | 4d8f7a1372e7e5e893a2bcc87739538e51c93792 (patch) | |
tree | 5d410e27d2e8de686bad5943fddc9ebcc5c8bcbc /lib/common/Logging.cpp | |
parent | d808bfe60cf6d31cba3cd307c6d7cb6a80173386 (diff) |
Fix includes to get getpid() on Solaris and to make them easier to read.
Diffstat (limited to 'lib/common/Logging.cpp')
-rw-r--r-- | lib/common/Logging.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/common/Logging.cpp b/lib/common/Logging.cpp index 2c65688c..97fc0121 100644 --- a/lib/common/Logging.cpp +++ b/lib/common/Logging.cpp @@ -16,12 +16,14 @@ #ifdef HAVE_SYSLOG_H #include <syslog.h> #endif - -#include "Logging.h" +#ifdef HAVE_UNISTD_H + #include <unistd.h> +#endif #include <iomanip> #include "BoxTime.h" +#include "Logging.h" bool Logging::sLogToSyslog = false; bool Logging::sLogToConsole = false; |