[trace] Use HAVE_FLOCKFILE/FUNLOCKFILE since configure test for them.

The trace source was using the flockfile() and funlockfile()
functions directly.
This commit is contained in:
M Joonas Pihlaja 2009-07-24 06:15:46 +03:00
parent b5cf24a4fb
commit 9bb469c51c

View file

@ -768,7 +768,9 @@ _write_lock (void)
if (! _init_logfile ())
return false;
#if HAVE_FLOCKFILE && HAVE_FUNLOCKFILE
flockfile (logfile);
#endif
return true;
}
@ -778,7 +780,9 @@ _write_unlock (void)
if (logfile == NULL)
return;
#if HAVE_FLOCKFILE && HAVE_FUNLOCKFILE
funlockfile (logfile);
#endif
if (_flush)
fflush (logfile);