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