depot/third_party/nixpkgs/pkgs/tools/networking/whois/clang.patch
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

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