From: mike Date: Wed, 9 Jan 2013 15:47:56 +0000 (+0000) Subject: Fix compile on Linux. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=671dcaada3bd82ab9f59446de734def3cde3dc9f;p=thirdparty%2Fcups.git Fix compile on Linux. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10786 7a7537e8-13f0-0310-91df-b6672ffda945 --- diff --git a/cups/http.c b/cups/http.c index 8b30e4fb2c..74abf2e026 100644 --- a/cups/http.c +++ b/cups/http.c @@ -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 */