From 1f05d9e5dc46010738fe85742f54a639c55dae24 Mon Sep 17 00:00:00 2001 From: Anton Kochkov Date: Wed, 25 Jun 2014 16:52:01 +0400 Subject: [PATCH] Fix libr_cons building on cygwin --- libr/cons/pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libr/cons/pipe.c b/libr/cons/pipe.c index eb9b028eae..f459dcdf0a 100644 --- a/libr/cons/pipe.c +++ b/libr/cons/pipe.c @@ -23,7 +23,7 @@ R_API int r_cons_pipe_open(const char *file, int fdn, int append) { if (backup_fd != -1) close (backup_fd); backup_fdn = (fdn>0)? fdn: 1; -#if __WINDOWS__ +#if __WINDOWS__ && !__CYGWIN__ backup_fd = 2002-(fd-2); // windows xp has 2048 as limit fd if (_dup2 (fdn, backup_fd) == -1) { #else