Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/ncftp: fix incompatible-pointer-types error
@ 2025-03-03 14:40 yegorslists
  2025-03-03 14:43 ` Yegor Yefremov
  2025-03-03 19:49 ` Peter Korsgaard
  0 siblings, 2 replies; 5+ messages in thread
From: yegorslists @ 2025-03-03 14:40 UTC (permalink / raw)
  To: buildroot

From: Yegor Yefremov <yegorslists@googlemail.com>

Use only stat, fstat, and lstat structures for the correspondent calls
and let the C library macros to pick the right structure and call
depending on the supported file size.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 package/ncftp/0003-fix-stat.patch | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 package/ncftp/0003-fix-stat.patch

diff --git a/package/ncftp/0003-fix-stat.patch b/package/ncftp/0003-fix-stat.patch
new file mode 100644
index 0000000000..8581cf546b
--- /dev/null
+++ b/package/ncftp/0003-fix-stat.patch
@@ -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
+@@ -260,18 +260,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
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-03-25 22:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-03 14:40 [Buildroot] [PATCH] package/ncftp: fix incompatible-pointer-types error yegorslists
2025-03-03 14:43 ` Yegor Yefremov
2025-03-03 19:49 ` Peter Korsgaard
2025-03-25 22:01   ` Julien Olivain
2025-03-25 22:17     ` Yegor Yefremov via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox