nixpkgs/pkgs/tools/networking/whois/clang.patch
2023-10-12 04:20:00 +00:00

12 lines
292 B
Diff

--- a/utils.h
+++ b/utils.h
@@ -15,7 +15,7 @@
#endif
/* Portability macros */
-#ifdef __GNUC__
+#if defined __GNUC__ && ! defined __clang__
# define NORETURN __attribute__((noreturn))
# define MALLOC_FREE __attribute__((malloc(free)))
# define NONNULL __attribute__((returns_nonnull))