ERROR_BROKEN_PIPE undeclared
When i use cmd "make" to bulit,the error comes out as below:
giowin32.c: In function 'g_io_win32_fd_get_flags_internal': giowin32.c:1805:118: error: 'ERROR_BROKEN_PIPE' undeclared (first use in this function) (PeekNamedPipe ((HANDLE) _get_osfhandle (win32_channel->fd), &c, 0, &count, NULL, NULL) != 0) || GetLastError () == ERROR_BROKEN_PIPE;
I fount the ERROR_BROKEN_PIPE is 230, So i use 230 instead of ERROR_BROKEN_PIPE in code giowin32.c. Did this modify cause other problems. why ERROR_BROKEN_PIPE not define in code?
(PeekNamedPipe ((HANDLE) _get_osfhandle (win32_channel->fd), &c, 0, &count, NULL, NULL) != 0) || GetLastError () == 230;