Skip to content

Commit

Permalink
Fix CUPS compilation error on macOS SDK 10.12. See #40
Browse files Browse the repository at this point in the history
  • Loading branch information
Eloston committed Sep 19, 2016
1 parent 18f87b6 commit eb27438
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/macos/patches/patch_order
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ ungoogled-macos/remove-opus-clang-warning-flag.patch
ungoogled-macos/fix-libcxx-archive-build-script.patch
ungoogled-macos/disable-warnings-as-errors.patch
ungoogled-macos/disable-symbol-order-verification.patch
ungoogled-macos/fix-cups-on-10.12.patch
18 changes: 18 additions & 0 deletions resources/macos/patches/ungoogled-macos/fix-cups-on-10.12.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Picked from: https://chromium.googlesource.com/chromium/src/+/29c1262dbd4f749dd514d05a571cdd809ba8cfe0
# Fix CUPS compilation error in OSX 10.12.
#
# BUG=622493
#
# Review-Url: https://codereview.chromium.org/2248343002
# Cr-Commit-Position: refs/heads/master@{#412670}

--- a/printing/backend/print_backend_cups.cc
+++ b/printing/backend/print_backend_cups.cc
@@ -4,6 +4,7 @@

#include "printing/backend/print_backend_cups.h"

+#include <cups/ppd.h>
#include <dlfcn.h>
#include <errno.h>
#include <pthread.h>

0 comments on commit eb27438

Please sign in to comment.