From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21749 invoked by alias); 15 Apr 2010 10:04:23 -0000 Received: (qmail 17525 invoked by uid 48); 15 Apr 2010 10:03:59 -0000 Date: Thu, 15 Apr 2010 10:04:00 -0000 Message-ID: <20100415100359.17520.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libstdc++/43738] basic_file_stdio.cc uses ioctl on a fd, but not available on mingw32 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sherpya at netfarm dot it" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-04/txt/msg01454.txt.bz2 ------- Comment #7 from sherpya at netfarm dot it 2010-04-15 10:03 ------- the correct way should be #if defined(FIONREAD) && !defined(_WIN32) or if you prefer __MINGW32__ (note _WIN32 is not defined on cygwin) ioctlsocket is not suitable because it does not work on file descriptors also it will need ws2_32 library at link time -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43738