From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id VF4PKNWzjmCVIwAAWB0awg (envelope-from ) for ; Sun, 02 May 2021 10:14:45 -0400 Received: by simark.ca (Postfix, from userid 112) id 97C891F11C; Sun, 2 May 2021 10:14:45 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id E4DA51E783 for ; Sun, 2 May 2021 10:14:44 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6ED733835820; Sun, 2 May 2021 14:14:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6ED733835820 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1619964884; bh=aCXGobtzM3tJ5QnSa68OYIo/h0+BgLGFxwSER/tve3I=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=hKd4FSibAJIgn4SaXTQUwHLVn+CxRo0YZ015UkLpzRsk3XOMbx5jTzNXaAE8FuWEy WZFayvoeogUSjT4uVbOCWZkJ//eRvN0TMCtu8xMLGOX20rVAxvUjJQRurrSxr91Mjr oOcIMtHuFU6sVeoN4fXt4cX6vp49cwVmng4GH2Hw= Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id BF71A3857C75 for ; Sun, 2 May 2021 14:14:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BF71A3857C75 Received: from vapier (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C410B340BDE; Sun, 2 May 2021 14:14:39 +0000 (UTC) Date: Sun, 2 May 2021 10:14:33 -0400 To: Eli Zaretskii Subject: Re: [PATCH] gnulib: import getline Message-ID: Mail-Followup-To: Eli Zaretskii , gdb-patches@sourceware.org References: <20210501220936.30972-1-vapier@gentoo.org> <533969a7-d2fe-cdbd-40dc-e77eab30a469@polymtl.ca> <838s4x8v5u.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <838s4x8v5u.fsf@gnu.org> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mike Frysinger via Gdb-patches Reply-To: Mike Frysinger Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On 02 May 2021 10:14, Eli Zaretskii wrote: > From: Mike Frysinger via Gdb-patches > > getline is in POSIX, but not all targets support it. e.g. Windows > > (mingw) omit it. > > Which MinGW? mingw.org's MinGW does have getline and getdelim. mingw.org doesn't exist anymore, and sf.net/p/mingw hasn't been updated in almost a decade. we switched to http://mingw-w64.org/ for 64-bit support. $ cat test.c #include int main() { getline(NULL, NULL, NULL); } $ i686-w64-mingw32-gcc test.c test.c: In function ‘main’: test.c:2:14: warning: implicit declaration of function ‘getline’ [-Wimplicit-function-declaration] 2 | int main() { getline(NULL, NULL, NULL); } | ^~~~~~~ /usr/libexec/gcc/i686-w64-mingw32/ld: /tmp/ccOlIsIf.o:test.c:(.text+0x26): undefined reference to `getline' collect2: error: ld returned 1 exit status $ i686-w64-mingw32-gcc --version i686-w64-mingw32-gcc (Gentoo 10.3.0 p1) 10.3.0 $ printf '#include <_mingw_mac.h>\n__MINGW64_VERSION_STR\n' | i686-w64-mingw32-gcc -E -dD -P - | tail -n1 "8" "." "0" "." "0" -mike