about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/networking/whois/clang.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/networking/whois/clang.patch')
-rw-r--r--nixpkgs/pkgs/tools/networking/whois/clang.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/networking/whois/clang.patch b/nixpkgs/pkgs/tools/networking/whois/clang.patch
new file mode 100644
index 000000000000..3091b9a3eee3
--- /dev/null
+++ b/nixpkgs/pkgs/tools/networking/whois/clang.patch
@@ -0,0 +1,11 @@
+--- 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))