Fix libr_cons building on cygwin

This commit is contained in:
Anton Kochkov 2014-06-25 16:52:01 +04:00
parent daab3440ca
commit 1f05d9e5dc

View File

@ -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