From: Michael Sweet Date: Tue, 19 Apr 2016 19:22:33 +0000 (-0400) Subject: Check for newer Security framework header version to avoid compiler error. X-Git-Tag: v2.2b1~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de8c34f8bdc66b758dea98dfef90dd204ea57aff;p=thirdparty%2Fcups.git Check for newer Security framework header version to avoid compiler error. --- diff --git a/cups/http-private.h b/cups/http-private.h index 10c6246705..89e61d459e 100644 --- a/cups/http-private.h +++ b/cups/http-private.h @@ -97,9 +97,11 @@ typedef int socklen_t; # ifdef __cplusplus extern "C" { # endif /* __cplusplus */ +# ifndef _SECURITY_VERSION_GREATER_THAN_57610_ typedef CF_OPTIONS(uint32_t, SecKeyUsage) { kSecKeyUsageAll = 0x7FFFFFFF }; +# endif /* !_SECURITY_VERSION_GREATER_THAN_57610_ */ extern const void * kSecCSRChallengePassword; extern const void * kSecSubjectAltName; extern const void * kSecCertificateKeyUsage;