Chromium Code Reviews| Index: printing/backend/print_backend_cups.cc |
| diff --git a/printing/backend/print_backend_cups.cc b/printing/backend/print_backend_cups.cc |
| index 9693299a5e9d9101cfcbf2a8e2162f6bb1d1e3d6..09fdf1d26bbba455d1c6a8007568d9711e077420 100644 |
| --- a/printing/backend/print_backend_cups.cc |
| +++ b/printing/backend/print_backend_cups.cc |
| @@ -6,7 +6,9 @@ |
| #include <dlfcn.h> |
| #include <errno.h> |
| +#if !defined(OS_MACOSX) |
|
Lei Zhang
2010/10/29 18:46:42
You can also wrap dlfcn.h and errno.h inside the #
|
| #include <gcrypt.h> |
| +#endif |
| #include <pthread.h> |
| #include "base/file_util.h" |
| @@ -18,6 +20,7 @@ |
| #include "googleurl/src/gurl.h" |
| #include "printing/backend/cups_helper.h" |
| +#if !defined(OS_MACOSX) |
| GCRY_THREAD_OPTION_PTHREAD_IMPL; |
| namespace { |
| @@ -64,6 +67,7 @@ class GcryptInitializer { |
| }; |
| } // namespace |
| +#endif |
| namespace printing { |
| @@ -182,8 +186,10 @@ bool PrintBackendCUPS::IsValidPrinter(const std::string& printer_name) { |
| scoped_refptr<PrintBackend> PrintBackend::CreateInstance( |
| const DictionaryValue* print_backend_settings) { |
| +#if !defined(OS_MACOSX) |
| // Initialize gcrypt library. |
| Singleton<GcryptInitializer>::get(); |
| +#endif |
| std::string print_server_url_str; |
| if (print_backend_settings) { |