X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=p3YLV076RwDdZMIc
	SXss6khQFhM6EQWiwwrz8xylnWSSAkkc8HTmdWI1dCpo1Go7TkqqzgqxcV+midZE
	QsIe3LflVjbRSngQHwCSfFORTYIreZ+w0EmVBiYuWOlKF4FwZRJkDzzT8uFhjPGs
	uTC2NT9zUsqyChEacWV8/mi1o+s=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=SO970B3eLQOXNV6KfpVkHS
	TbnW4=; b=Dpyl9bklJx5tBo4Pcf52KY3ZjDE+Iu401204V8/Fy3i0fO7+12Lrlc
	0r0Dus62zSnqiZaOtlKVY1MJPesjDNiqk/LYys8aZmIpO4F7Rn1D06FZJVYo1LHP
	iZ2aVDl8YpGWYe8klTQ+rlnHDwOw96QKxN+iw2SN9Nj9e+czitnh8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*M:cygwin, bz0815@tirol.com, bz0815tirolcom, U*bz0815
X-HELO: mx1.redhat.com
DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3D290C056786
Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=cygwin.com
Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=none smtp.mailfrom=yselkowitz@cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 3D290C056786
Subject: Re: Pthreads: Prototypes missing if -std=c11
To: cygwin@cygwin.com
References: <mtranet.20170712181557.1862059698@a1.net>
From: Yaakov Selkowitz <yselkowitz@cygwin.com>
Message-ID: <c24d7b80-6dc0-1d1d-9b19-bcb6847f9747@cygwin.com>
Date: Wed, 12 Jul 2017 12:49:58 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <mtranet.20170712181557.1862059698@a1.net>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 2017-07-12 11:15, bz0815@tirol.com wrote:
> gcc does not recognize some functions from pthread.h if option -std=c11 is used:

Exactly, and the same happens with glibc.  When you use -std=c*, that
means you are declaring strict ISO C, and all extensions are disabled by
default unless explicitly enabled (e.g. with -D_POSIX_C_SOURCE=200112L).
 If you are not compatible with ISO C, then you should be using
-std=gnu* instead.

-- 
Yaakov

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

