From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 45583 invoked by alias); 14 Feb 2018 15:22:38 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 45568 invoked by uid 89); 14 Feb 2018 15:22:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Quote, 2.12 X-HELO: mail-qk0-f175.google.com Received: from mail-qk0-f175.google.com (HELO mail-qk0-f175.google.com) (209.85.220.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 14 Feb 2018 15:22:36 +0000 Received: by mail-qk0-f175.google.com with SMTP id f25so1498476qkm.0 for ; Wed, 14 Feb 2018 07:22:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hIiMae3MtOXLC/mTQMeCNxCOcM5yC8EbNy9U+vCw22s=; b=cJBFmNPtaKTCsBphPIeyWvzyirNz/PUGUz5hcUH61BechE4B9RrC739Kif6AMeps9B bsbGa3SKdrAkh1VP+/1OVKJi2hpX9dHlxdRhdTOxsATQCOm5Px+DF7ahNQqlx0HUb9Bl r5DTdjy8bdh0Ie5FBOi7hHaOIPiXzLH9s/7RjNqyuNw8gUjbA1TFvpUFNcG71TlTeQoD ieBGDPuX1WcppMe82AlO1bKNlseuw4b3j6QwGM6U37+cNwizjjk33X5ApAQzktsU9Pbr DEgkmUKXnIshSForH3ZR1wQSdwFo5ZyuDSLIXC8DmRCQ0H5ZBjcerJ670eUq2rnD59cF PCyQ== X-Gm-Message-State: APf1xPDjezhG0XwdBUyrmvmFNRX2SHYdS8WAGW/+nTAO98G7j0tSPrQY mi2UyVtpyyytdfM80xpuh1f9VB21tnVwPcvILxs= X-Google-Smtp-Source: AH8x224kt4RAPsDpIY5kHRIqc91DgUdRbSrCUEOj4qzZAU3fsVoZGjev10UOOgXNdOFD9s/fQykm3bJ0Bo0d1RD8Py8= X-Received: by 10.55.163.130 with SMTP id m124mr8207260qke.256.1518621755276; Wed, 14 Feb 2018 07:22:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.153.232 with HTTP; Wed, 14 Feb 2018 07:22:34 -0800 (PST) In-Reply-To: References: <1516976072-19282-1-git-send-email-markus.t.metzger@intel.com> <1516976072-19282-2-git-send-email-markus.t.metzger@intel.com> From: Yao Qi Date: Wed, 14 Feb 2018 15:22:00 -0000 Message-ID: Subject: Re: [PATCH v2 1/7] common: add scoped_fd To: "Metzger, Markus T" Cc: GDB Patches Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2018-02/txt/msg00202.txt.bz2 On Tue, Feb 13, 2018 at 5:28 PM, Metzger, Markus T wrote: > > This is supposed to be a glibc function. But it is guarded by some featu= re macros. > Quote from mkstemp(3): " > > mkstemp(): > _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >=3D 500 || _XOPE= N_SOURCE && _XOPEN_SOURCE_EXTENDED > || /* Since glibc 2.12: */ _POSIX_C_SOURCE >=3D 200112L > > mkostemp(): _GNU_SOURCE > mkstemps(): _BSD_SOURCE || _SVID_SOURCE > mkostemps(): _GNU_SOURCE > " > > Maybe the newer compiler is setting some macros automatically that the ol= der compiler doesn't set. > Could you try setting, say, _POSIX_C_SOURCE or try using mkostemp() inste= ad of mkstemp()? > None of them works with my i686-w64-mingw32-g++ 4.8.2. :( > If that doesn't help, I'll try to find a Ubuntu 14.04 to reproduce the is= sue. > --=20 Yao (=E9=BD=90=E5=B0=A7)