Fixed problem with unresolved symbol on stat()

git-svn-id: svn://10.0.0.236/trunk@134842 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mostafah%oeone.com 2002-12-05 14:03:48 +00:00
parent 669a5e13af
commit e7acc68490

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