Files
ports/ftp/ftpcopy/files/patch-src_attributes.h
T
Matthias Andree 87ad00b538 ftp/ftpcopy: fix build on ARM64 and refresh
With GCC14 now being pulled in on non-i386 non-amd64 platforms,
the compiler is stricter about prototypes.

I think all our base compilers should be good enough, but some
platforms don't seem to allow regparm, so patch that out.
2026-01-02 12:41:50 +01:00

12 lines
304 B
C

--- src/attributes.h.orig 2004-07-27 11:27:56 UTC
+++ src/attributes.h
@@ -67,7 +67,7 @@
#define attribute_inline __inline__
-#if GNUC_MINIMUM(2,7) /* doesn't work reliable before, IIRC */
+#if 0
# define attribute_regparm(x) __attribute__((__regparm__((x))))
#else
# define attribute_regparm(x)