Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Subject: Re: daemon From: Robert Collins To: cygdev In-Reply-To: <20010913135614.S1285@cygbert.vinschen.de> References: <1000375038 DOT 6113 DOT 12 DOT camel AT lifelesswks> <20010913135614 DOT S1285 AT cygbert DOT vinschen DOT de> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.13 (Preview Release) Date: 13 Sep 2001 21:59:12 +1000 Message-Id: <1000382362.8580.3.camel@lifelesswks> Mime-Version: 1.0 X-OriginalArrivalTime: 13 Sep 2001 11:46:11.0699 (UTC) FILETIME=[AF742C30:01C13C49] On Thu, 2001-09-13 at 21:56, Corinna Vinschen wrote: > On Thu, Sep 13, 2001 at 07:57:12PM +1000, Robert Collins wrote: > > The daemon is coming long nicely. I've a nearly complete transport layer > > class, with a factory and virtual methods, to encapsulate all the > > security impersonation and handshaking needed, allowing us to focus on > > the daemon for now, or the transport or both. > > > > However, I have a little question. > > > > I want to use the same class inside and outside cygwin, for consistency, > > and to prevent skew problems. The issue is that things like accept() > > outside of cygwin are fine, but in cygwin you need to use > > cygwin_accept(). > > > > So... is there someway to resolve that, without compiling the source > > file twice (which is one way) or having a symlink to the source under a > > different name (ugly IMO)? > > Perhaps a header file which takes __INSIDE_CYGWIN__ into account? Well that requires two.o files - which is what I've done as a temporary measure (possibly permanent). The problem is linktime symbols, not compile time. Rob