mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
ncftp: workaround gcc-14 error incompatible-pointer-types on arm and aarch64
from: https://lore.kernel.org/buildroot/CAGm1_kt1Gp8ii0HeVo+AA96E3ayYu2USvi=h4ADLgN_-ehcezg@mail.gmail.com/T/#mbc99a38f138f5cfae303d3fdd72e13bc9fb668cd
This commit is contained in:
parent
df9aea38bf
commit
9305805b1d
@ -0,0 +1,27 @@
|
||||
Use stat, fstat, and lstat structures and let the C library handle the
|
||||
related structures and system calls.
|
||||
|
||||
Upstream: N/A, unresponsive contact email address.
|
||||
|
||||
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
|
||||
--- a/ncftp/syshdrs.h
|
||||
+++ b/ncftp/syshdrs.h
|
||||
@@ -266,18 +266,6 @@
|
||||
# define Stat WinStat64
|
||||
# define Lstat WinStat64
|
||||
# define Fstat WinFStat64
|
||||
-#elif ((defined(HAVE_LONG_LONG)) && (defined(_LARGEFILE64_SOURCE)) && (defined(HAVE_STAT64)) && (defined(HAVE_STRUCT_STAT64)))
|
||||
-# define Stat stat64
|
||||
-# ifdef HAVE_FSTAT64
|
||||
-# define Fstat fstat64
|
||||
-# else
|
||||
-# define Fstat fstat
|
||||
-# endif
|
||||
-# ifdef HAVE_LSTAT64
|
||||
-# define Lstat lstat64
|
||||
-# else
|
||||
-# define Lstat lstat
|
||||
-# endif
|
||||
#else
|
||||
# define Stat stat
|
||||
# define Fstat fstat
|
Loading…
x
Reference in New Issue
Block a user