1
0
Fork 0
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:
Cœur 2024-06-12 09:34:47 +08:00 committed by GitHub
parent d42d0f3f3f
commit ec6112e0b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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