mirror of
https://github.com/transmission/transmission
synced 2025-01-03 05:25:52 +00:00
fix compile error: no matching function for call to ‘flock::flock‘ (#6908)
* fix compile error with gcc 8.2: no matching function for call to ‘flock::flock(tr_sys_file_t&, const int&) * #error temp checking which pipelines have XFS * code review: removing duplicate include --------- Co-authored-by: yunhai <haihai107@126.com>
This commit is contained in:
parent
d42d0f3f3f
commit
ec6112e0b1
1 changed files with 4 additions and 1 deletions
|
@ -23,8 +23,11 @@
|
|||
#include <sys/stat.h>
|
||||
#include <unistd.h> /* lseek(), write(), ftruncate(), pread(), pwrite(), pathconf(), etc */
|
||||
|
||||
#ifdef HAVE_XFS_XFS_H
|
||||
#ifdef HAVE_FLOCK
|
||||
#include <sys/file.h> /* flock() */
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_XFS_XFS_H
|
||||
#include <xfs/xfs.h>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue