This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: [PATCH]: 2. Thread safe stdio update
- From: Corinna Vinschen <cygwin-patches at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Fri, 23 Jan 2004 11:08:56 +0100
- Subject: Re: [PATCH]: 2. Thread safe stdio update
- References: <40103708.1020501@gmx.net>
On Jan 22 21:48, Thomas Pfaff wrote:
> This is an update of my previous patch. It adds support for newlibs
> __LOCK_INIT macro.
>
> Thomas
>
> 2004-01-22 Thomas Pfaff <tpfaff@gmx.net>
>
> * include/sys/_types.h: New file.
I'm not quite sure if that's the way to go. I'm wondering if we
shouldn't keep newlib's _types.h and change it like this:
#ifdef __CYGWIN__
#include <cygwin/_types.h>
#endif
#ifndef __CYGWIN__
typedef int _flock_t;
#endif
Then we can create a cygwin/_types.h with the correct _flock_t definition.
IMHO that's cleaner than just overloading newlib's _types.h.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.