From 0f77d5a8cba6d8b7819010fab33cddbd9e103870 Mon Sep 17 00:00:00 2001 From: rfm Date: Mon, 23 Sep 2013 11:46:23 +0000 Subject: [PATCH] fix to build without tls support git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37139 72102866-910b-0410-8b05-ffd578937521 --- Source/NSFileHandle.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/NSFileHandle.m b/Source/NSFileHandle.m index 6e839a639..29d950577 100644 --- a/Source/NSFileHandle.m +++ b/Source/NSFileHandle.m @@ -713,7 +713,12 @@ NSString * const NSFileHandleOperationException + (void) setData: (NSData*)data forTLSFile: (NSString*)fileName { +#if defined(HAVE_GNUTLS) [GSTLSObject setData: data forTLSFile: fileName]; +#else + [NSException raise: NSInternalInconsistencyException + format: @"[NSFileHandle+setData:forTLSFile:] called for a copy of gnustep-base which had GNUTLS support explicitly disabled at configure time"]; +#endif } /**