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
This commit is contained in:
Richard Frith-MacDonald 2013-09-23 11:46:23 +00:00
parent 77415c00b5
commit 063db3e8ae

View file

@ -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
}
/**