mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 23:20:40 +00:00
Fix libr_cons building on cygwin
This commit is contained in:
parent
daab3440ca
commit
1f05d9e5dc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user