From 80a9952718ac2c64ece2cf870356b57c70684182 Mon Sep 17 00:00:00 2001 From: rfm Date: Sat, 5 Jan 2008 15:57:47 +0000 Subject: [PATCH] fix ifdefs git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25869 72102866-910b-0410-8b05-ffd578937521 --- Source/GSSocketStream.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/GSSocketStream.m b/Source/GSSocketStream.m index 0154b1fab..206ed0d7d 100644 --- a/Source/GSSocketStream.m +++ b/Source/GSSocketStream.m @@ -103,6 +103,8 @@ static struct gcry_thread_cbs gcry_threads_other = { - (int) write: (const uint8_t *)buffer maxLength: (unsigned int)len; @end +#if defined(HAVE_GNUTLS) + /* Callback to allow the TLS code to pull data from the remote system. * If the operation fails, this sets the error number. */ @@ -163,6 +165,9 @@ GSTLSLog(int level, const char *msg) NSLog(@"%s", msg); } +#endif /* HAVE_GNUTLS */ + + @implementation GSTLS #if defined(HAVE_GNUTLS) static gnutls_anon_client_credentials_t anoncred;