aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cspice/isatty.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/cspice/isatty.patch')
-rw-r--r--vcpkg/ports/cspice/isatty.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/vcpkg/ports/cspice/isatty.patch b/vcpkg/ports/cspice/isatty.patch
new file mode 100644
index 0000000..98624a3
--- /dev/null
+++ b/vcpkg/ports/cspice/isatty.patch
@@ -0,0 +1,19 @@
+--- a/src/cspice/fio.h 2019-11-01 20:51:53.198400000 +0300
++++ b/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);