diff options
| author | Hleb Valoshka <375gnu@gmail.com> | 2019-11-21 01:04:54 +0300 |
|---|---|---|
| committer | Griffin Downs <35574547+grdowns@users.noreply.github.com> | 2019-11-20 14:04:54 -0800 |
| commit | f07efb4a1dfebf4f9d55308785e65c74b68de269 (patch) | |
| tree | bdef987ed12652bc8d462dc804f7376567d47626 /ports/cspice/isatty.patch | |
| parent | 53183733000b3c4b025960ee04db939256556da0 (diff) | |
| download | vcpkg-f07efb4a1dfebf4f9d55308785e65c74b68de269.tar.gz vcpkg-f07efb4a1dfebf4f9d55308785e65c74b68de269.zip | |
NASA C SPICE toolkit (#8859)
Diffstat (limited to 'ports/cspice/isatty.patch')
| -rw-r--r-- | ports/cspice/isatty.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ports/cspice/isatty.patch b/ports/cspice/isatty.patch new file mode 100644 index 000000000..a6d201d77 --- /dev/null +++ b/ports/cspice/isatty.patch @@ -0,0 +1,19 @@ +--- a/cspice/src/cspice/fio.h 2019-11-01 20:51:53.198400000 +0300 ++++ b/cspice/src/cspice/fio.h 2019-11-01 21:19:58.123200000 +0300 +@@ -1,3 +1,6 @@ ++#ifdef _WIN32 ++#include <io.h> /* for isatty() */ ++#endif + #include "stdio.h" + #include "errno.h" + #ifndef NULL +@@ -75,7 +76,9 @@ + extern int (*f__donewrec)(void), t_putc(int), x_wSL(void); + extern void b_char(char*,char*,ftnlen), g_char(char*,ftnlen,char*); + extern int c_sfe(cilist*), z_rnew(void); ++#ifndef _WIN32 + extern int isatty(int); ++#endif + extern int err__fl(int,int,char*); + extern int xrd_SL(void); + extern int f__putbuf(int); |
