Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

rush: Fix build on Linux

http://hydra.nixos.org/build/12922354

+15
+2
pkgs/shells/rush/default.nix
··· 8 8 sha256 = "0fh0gbbp0iiq3wbkf503xb40r8ljk42vyj9bnlflbz82d6ipy1rm"; 9 9 }; 10 10 11 + patches = [ ./gets.patch ]; 12 + 11 13 doCheck = true; 12 14 13 15 meta = {
+13
pkgs/shells/rush/gets.patch
··· 1 + --- rush-1.7/gnu/stdio.in.h.org 2010-06-13 19:14:59.000000000 +0200 2 + +++ rush-1.7/gnu/stdio.in.h 2013-12-30 14:29:55.000000000 +0100 3 + @@ -138,8 +138,10 @@ _GL_WARN_ON_USE (fflush, "fflush is not 4 + /* It is very rare that the developer ever has full control of stdin, 5 + so any use of gets warrants an unconditional warning. Assume it is 6 + always declared, since it is required by C89. */ 7 + +#if defined gets 8 + #undef gets 9 + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); 10 + +#endif 11 + 12 + #if @GNULIB_FOPEN@ 13 + # if @REPLACE_FOPEN@