From 0d185c32389323fd7a24f41bd8fb3ca0a31ea4ff Mon Sep 17 00:00:00 2001 From: Evan Miller Date: Tue, 24 Aug 2021 09:28:50 -0400 Subject: [PATCH] libcups: Fix unused-function error with SSL disabled --- cups/usersys.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cups/usersys.c b/cups/usersys.c index 2e1a80b580..953778505a 100644 --- a/cups/usersys.c +++ b/cups/usersys.c @@ -93,7 +93,9 @@ typedef struct _cups_client_conf_s /**** client.conf config data ****/ */ #ifdef __APPLE__ +# ifdef HAVE_TLS static int cups_apple_get_boolean(CFStringRef key, int *value); +# endif /* HAVE_TLS */ static int cups_apple_get_string(CFStringRef key, char *value, size_t valsize); #endif /* __APPLE__ */ static int cups_boolean_value(const char *value); @@ -1055,6 +1057,7 @@ _cupsSetDefaults(void) #ifdef __APPLE__ +# ifdef HAVE_TLS /* * 'cups_apple_get_boolean()' - Get a boolean setting from the CUPS preferences. */ @@ -1075,6 +1078,7 @@ cups_apple_get_boolean( return ((int)bval_set); } +# endif /* HAVE_TLS */ /* -- 2.47.2