1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 10:56:53 +00:00
nixpkgs/pkgs/tools/text/gnupatch/setmode.patch
Eelco Dolstra 2881391565 * Fix GNU patch on Darwin (and probably FreeBSD as well).
svn path=/nixpkgs/trunk/; revision=5705
2006-07-14 11:20:30 +00:00

21 lines
564 B
Diff

diff -rc patch-2.5.4-orig/pch.c patch-2.5.4/pch.c
*** patch-2.5.4-orig/pch.c Mon Aug 30 08:20:08 1999
--- patch-2.5.4/pch.c Fri Jul 14 13:11:26 2006
***************
*** 105,111 ****
if (!filename || !*filename || strEQ (filename, "-"))
{
file_offset stdin_pos;
! #if HAVE_SETMODE
if (binary_transput)
{
if (isatty (STDIN_FILENO))
--- 105,111 ----
if (!filename || !*filename || strEQ (filename, "-"))
{
file_offset stdin_pos;
! #if 0 && HAVE_SETMODE
if (binary_transput)
{
if (isatty (STDIN_FILENO))