From 10065d2acd0a9e1e852a8151c95569b99d1b3294 Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Mon, 27 Jun 2016 15:34:07 -0500 Subject: [PATCH] winspool.drv: Include to fix building against the macOS 10.12 SDK. The cupsGetPPD() function was moved there from because it's deprecated. Signed-off-by: Ken Thomases Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- configure | 12 ++++++++++++ configure.ac | 3 ++- dlls/winspool.drv/info.c | 3 +++ include/config.h.in | 3 +++ 4 files changed, 20 insertions(+), 1 deletion(-) --- a/configure.ac +++ b/configure.ac @@ -1536,7 +1536,8 @@ AC_CHECK_HEADERS(cups/cups.h, [WINE_CHECK_SONAME(cups,cupsGetDefault, [CUPS_CFLAGS="$ac_cups_cflags"],, - [$ac_cups_libs])]) + [$ac_cups_libs]) + AC_CHECK_HEADERS(cups/ppd.h)]) CPPFLAGS="$ac_save_CPPFLAGS" fi WINE_NOTICE_WITH(cups,[test "x$ac_cv_lib_soname_cups" = "x"], --- a/dlls/winspool.drv/info.c +++ b/dlls/winspool.drv/info.c @@ -44,6 +44,9 @@ #ifdef HAVE_CUPS_CUPS_H # include #endif +#ifdef HAVE_CUPS_PPD_H +# include +#endif #ifdef HAVE_APPLICATIONSERVICES_APPLICATIONSERVICES_H #define GetCurrentProcess GetCurrentProcess_Mac