depot/third_party/nixpkgs/pkgs/tools/networking/whois/clang.patch

12 lines
292 B
Diff
Raw Normal View History

--- 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))