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:message-id:from:to:references:in-reply-to
	:subject:date:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=H1vFmBPkJPa5roDx
	+eSKAWOOWBtWPsRufkkwovqjhb4Ermvqic8yRfnVlQ4+x7NfDIo/RduEuAJ1hVxq
	XJ96MVvzM/tDWvT7QGlcL1CxZEGmw1wdDBrFxTAZDdhHjlvi7z90SPK1X6CtE2Rg
	6imXHdgdxvo452TLSCug0kU00GQ=
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:message-id:from:to:references:in-reply-to
	:subject:date:mime-version:content-type
	:content-transfer-encoding; s=default; bh=rrEo8X11bvJU7GOTtZJXnL
	N3iIU=; b=TWjrMer0lhYoUYDAcWhISCNdlHy1nViCupwtOsGGjM7M7xiCdQQDxG
	p9uOwcIBOnBE6ZEtgTr2ZJzNYcRKQ5szZ4LtUDrO69ElC/TLKyINwRHl7E52xq26
	lK6sQKXBA4AzmINPkcJ7dtTfYKUR9BVvdGtwTeZOTtzoqSd2moV9s=
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=1.5 required=5.0 tests=AWL,BAYES_60,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2
X-HELO: BAY004-OMC1S25.hotmail.com
X-TMN: [78dCTx5dBtMwI79jIt1dnuuiA5HHQkFs]
Message-ID: <BAY169-DS3787671AB9BD9F7308CB6AA70E0@phx.gbl>
From: "Tony Kelman" <tony@kelman.net>
To: <cygwin@cygwin.com>
References: <CAA65N5xBP-GoC5MfYc7xvBFMLunCT8nP08NcPZmY4mNfgNm6+Q@mail.gmail.com>
In-Reply-To: <CAA65N5xBP-GoC5MfYc7xvBFMLunCT8nP08NcPZmY4mNfgNm6+Q@mail.gmail.com>
Subject: Re: libuv
Date: Wed, 2 Dec 2015 11:47:42 -0800
MIME-Version: 1.0
Content-Type: text/plain;	format=flowed;	charset="UTF-8";	reply-type=original
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

> Lots of project such as node.js or neovim are using libuv
> (https://github.com/libuv/libuv) which is incompatible with Cygwin.
> I've spent some time trying to build it, but I get issues with
> pthread.

The first compilation error you'll get will look like "unknown type name
'pthread_barrier_t'" but that's actually pretty simple to work around
in libuv. The harder part is the lack of support in Cygwin for epoll,
inotify, and other async IO syscalls that libuv uses on unices. It might
be possible to graft together a build configuration for libuv on Cygwin
that uses WinAPI IOCP for the async parts but cygwin's posix layer for
the rest, but it would be quite a bit of work.

-Tony


--
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

