Fixed problem with unresolved symbol on stat()

This commit is contained in:
mostafah%oeone.com 2002-12-05 14:03:48 +00:00
parent 82b60aea48
commit 703f5b19be

View File

@ -674,6 +674,11 @@ oeICalImpl::SetServer( const char *str ) {
icalset *stream;
//UGLY HACK TO ADD DEPENDANCY TO stat() in libc. ( -lc didn't work )
int dummy=0;
if( dummy )
stat(NULL,NULL);
stream = icalfileset_new(serveraddr);
if ( !stream ) {
#ifdef ICAL_DEBUG