mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user