delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Subject: | Re: Thread support in cygwin! |
From: | Joost Kraaijeveld <J DOT Kraaijeveld AT Askesis DOT nl> |
To: | Samuel Thibault <samuel DOT thibault AT ens-lyon DOT org> |
Cc: | Cygwin <cygwin AT cygwin DOT com> |
In-Reply-To: | <20060413090026.GD4280@implementation.labri.fr> |
References: | <3894619 DOT post AT talk DOT nabble DOT com> <1144908615 DOT 22144 DOT 6 DOT camel AT localhost> <20060413074220 DOT GA4280 AT implementation DOT labri DOT fr> <1144917939 DOT 22144 DOT 21 DOT camel AT localhost> <20060413090026 DOT GD4280 AT implementation DOT labri DOT fr> |
Date: | Thu, 13 Apr 2006 11:36:43 +0200 |
Message-Id: | <1144921003.22144.29.camel@localhost> |
Mime-Version: | 1.0 |
X-Mailer: | Evolution 2.4.2.1 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id k3D9aruA013307 |
On Thu, 2006-04-13 at 11:00 +0200, Samuel Thibault wrote: > Joost Kraaijeveld, le Thu 13 Apr 2006 10:45:39 +0200, a écrit : > > On Thu, 2006-04-13 at 09:42 +0200, Samuel Thibault wrote: > > > Joost Kraaijeveld, le Thu 13 Apr 2006 08:10:15 +0200, a écrit : > > > > No, it means that _POSIX_THREADS is not defined. > > > > > > Cygwin should define it. > > Why? > > In unistd.h I mean. (And by really looking at it, unistd.h includes > sys/unistd.h which itself includes sys/features.h, which defines it, so > the problem here is probably that the user includes pthread.h instead of > unistd.h (I haven't kept the mail)). You are right here: see also http://www.opengroup.org/onlinepubs/007908799/xsh/unistd.h.html or http://www.opengroup.org/onlinepubs/009695399/basedefs/unistd.h.html (The Single UNIX ® Specification, Version 2 or 3). Although not required by a pthread spec (as far as I can see) it might be a good idea to include (the pthread part) unistd.h in the pthread.h as Linux and pthreads-win32 seem to do. -- Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 web: www.askesis.nl -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |