forked from pool/whois
- Fix build on SLE * whois-remove-malloc-attribute.patch OBS-URL: https://build.opensuse.org/request/show/1128610 OBS-URL: https://build.opensuse.org/package/show/network:utilities/whois?expand=0&rev=142
14 lines
378 B
Diff
14 lines
378 B
Diff
Index: whois/utils.h
|
|
===================================================================
|
|
--- whois.orig/utils.h
|
|
+++ whois/utils.h
|
|
@@ -24,7 +24,7 @@
|
|
# define NONNULL
|
|
# define UNUSED
|
|
#endif
|
|
-#if defined __GNUC__ && !defined __clang__
|
|
+#if defined __GNUC__ && __GNUC__ >= 13 && !defined __clang__
|
|
# define MALLOC_FREE __attribute__((malloc(free)))
|
|
#else
|
|
# define MALLOC_FREE
|