From: Evan Miller Date: Tue, 24 Aug 2021 13:28:50 +0000 (-0400) Subject: libcups: Fix unused-function error with SSL disabled X-Git-Tag: v2.4b1~89^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F223%2Fhead;p=thirdparty%2Fcups.git libcups: Fix unused-function error with SSL disabled --- 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 */ /*