File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 42
42
- uses : msys2/setup-msys2@v2
43
43
if : (matrix.sys.os == 'windows-2019')
44
44
with :
45
- msystem : ${{ fromJSON('["MINGW32 ", "MINGW64 "]')[matrix.sys.arch != 'i686'] }}
45
+ msystem : ${{ fromJSON('["mingw32 ", "mingw64 "]')[matrix.sys.arch != 'i686'] }}
46
46
update : true
47
47
install : git base-devel
48
48
- run : |
Original file line number Diff line number Diff line change 12
12
#include <stdlib.h> /* for atoi MCL */
13
13
#include <string.h>
14
14
#include <strings.h>
15
+ #if defined(_WIN32 ) || defined(_WIN64 ) /* MinGW */
16
+ #else
15
17
#include <sys/select.h> /* select() */
18
+ #endif
16
19
17
20
#include <ciao/eng.h>
18
21
#include <ciao/eng_registry.h>
@@ -1776,6 +1779,10 @@ CBOOL__PROTO(prolog_set_unbuf) {
1776
1779
1777
1780
CBOOL__PROTO (prolog_input_wait ) {
1778
1781
ERR__FUNCTOR ("io_basic:$input_wait" , 3 );
1782
+ #if defined(_WIN32 ) || defined(_WIN64 ) /* MinGW */
1783
+ #warning "io_basic:$input_wait is not supported in the Win32 build" /* TODO:[JF] fixme */
1784
+ CBOOL__PROCEED ;
1785
+ #else
1779
1786
int errcode ;
1780
1787
stream_node_t * s = stream_to_ptr_check (X (0 ), 'r' , & errcode );
1781
1788
if (!s ) {
@@ -1785,7 +1792,7 @@ CBOOL__PROTO(prolog_input_wait) {
1785
1792
int fd = fileno (s -> streamfile );
1786
1793
1787
1794
if (s -> pending_rune != RUNE_VOID ) { /* RUNE_EOF or valid rune */
1788
- return TRUE ;
1795
+ CBOOL__PROCEED ;
1789
1796
}
1790
1797
1791
1798
fd_set set ;
@@ -1807,6 +1814,7 @@ CBOOL__PROTO(prolog_input_wait) {
1807
1814
}
1808
1815
1809
1816
CBOOL__LASTTEST (rv != 0 );
1817
+ #endif
1810
1818
}
1811
1819
1812
1820
/* --------------------------------------------------------------------------- */
You can’t perform that action at this time.
0 commit comments