diff options
author | Manuel Teira Paz <mteira@apache.org> | 2009-03-05 16:25:17 +0000 |
---|---|---|
committer | Manuel Teira Paz <mteira@apache.org> | 2009-03-05 16:25:17 +0000 |
commit | 02e61c6e9aa8803eee6388185e07b283e29a539b (patch) | |
tree | 6145b5d99d5e19fe6c6ab333e9d2627f6fc69c83 /cpp | |
parent | 6b4997094d536e40c82be32ac3bef2a545f0cc1c (diff) | |
download | qpid-python-02e61c6e9aa8803eee6388185e07b283e29a539b.tar.gz |
qpid/log/posix/SinkOptions.cpp
- Conditionally use LOG_FTP and LOG_AUTHPRIV
- Add a missing std namespace
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@750496 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/qpid/log/posix/SinkOptions.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/qpid/log/posix/SinkOptions.cpp b/cpp/src/qpid/log/posix/SinkOptions.cpp index 9d51358e2e..985cb32c5c 100644 --- a/cpp/src/qpid/log/posix/SinkOptions.cpp +++ b/cpp/src/qpid/log/posix/SinkOptions.cpp @@ -42,10 +42,14 @@ public: struct NameValue { const char* name; int value; }; NameValue nameValue[] = { { "AUTH", LOG_AUTH }, +#ifdef HAVE_LOG_AUTHPRIV { "AUTHPRIV", LOG_AUTHPRIV }, +#endif { "CRON", LOG_CRON }, { "DAEMON", LOG_DAEMON }, +#ifdef HAVE_LOG_FTP { "FTP", LOG_FTP }, +#endif { "KERN", LOG_KERN }, { "LOCAL0", LOG_LOCAL0 }, { "LOCAL1", LOG_LOCAL1 }, @@ -72,7 +76,7 @@ public: int value(const string& name) const { string key(name); - transform(key.begin(), key.end(), key.begin(), ::toupper); + std::transform(key.begin(), key.end(), key.begin(), ::toupper); ByName::const_iterator i = byName.find(key); if (i == byName.end()) throw Exception("Not a valid syslog facility: " + name); |