aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cspice/isatty.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/cspice/isatty.patch
move to own git serverHEADmaster
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);