mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 07:18:04 +02:00
[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:
parent
b5cf24a4fb
commit
9bb469c51c
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue