]> git.pld-linux.org Git - packages/whois.git/blobdiff - whois-gcc.patch
- updated to 5.5.19
[packages/whois.git] / whois-gcc.patch
diff --git a/whois-gcc.patch b/whois-gcc.patch
new file mode 100644 (file)
index 0000000..728db2e
--- /dev/null
@@ -0,0 +1,15 @@
+Extended malloc attributes are available since gcc 11.
+--- whois/utils.h.orig 2023-10-08 22:58:33.000000000 +0200
++++ whois/utils.h      2023-10-21 17:56:23.225691505 +0200
+@@ -17,7 +17,11 @@
+ /* Portability macros */
+ #ifdef __GNUC__
+ # define NORETURN __attribute__((noreturn))
++#  if __GNUC__ >= 11
+ # define MALLOC_FREE __attribute__((malloc(free)))
++#  else
++#   define MALLOC_FREE
++#  endif
+ # define NONNULL __attribute__((returns_nonnull))
+ #else
+ # define NORETURN
This page took 0.096247 seconds and 4 git commands to generate.