mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 13:19:10 +03:00
Merge pull request #260791 from marsam/fix-whois-darwin
whois: fix build with Clang
This commit is contained in:
commit
195726bfaa
11
pkgs/tools/networking/whois/clang.patch
Normal file
11
pkgs/tools/networking/whois/clang.patch
Normal file
@ -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))
|
@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
|
||||
hash = "sha256-4mFn5cY7ipAU4vOiHC2s69fxYJwShQEQ1eA8t5JvOP0=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./clang.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ perl gettext pkg-config ];
|
||||
buildInputs = [ libidn2 libiconv ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user