]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix compile on Linux.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 9 Jan 2013 15:47:56 +0000 (15:47 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 9 Jan 2013 15:47:56 +0000 (15:47 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10786 7a7537e8-13f0-0310-91df-b6672ffda945

cups/http.c

index 8b30e4fb2c94c18520f146470fc634c0be3801d3..74abf2e026fb6c849f5f166c3ad31d584c6222c6 100644 (file)
@@ -5155,8 +5155,6 @@ http_set_wait(http_t *http)               /* I - Connection to server */
 static int                             /* O - 0 on success, -1 on failure */
 http_setup_ssl(http_t *http)           /* I - Connection to server */
 {
-  _cups_globals_t      *cg = _cupsGlobals();
-                                       /* Pointer to library globals */
   char                 hostname[256],  /* Hostname */
                        *hostptr;       /* Pointer into hostname */
 
@@ -5169,6 +5167,8 @@ http_setup_ssl(http_t *http)              /* I - Connection to server */
   gnutls_certificate_client_credentials *credentials;
                                        /* TLS credentials */
 #  elif defined(HAVE_CDSASSL)
+  _cups_globals_t      *cg = _cupsGlobals();
+                                       /* Pointer to library globals */
   OSStatus             error;          /* Error code */
   const char           *message = NULL;/* Error message */
   cups_array_t         *credentials;   /* Credentials array */