This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch to fail with error message when pthread_t not defined


Looks good to me.

Rob
===
----- Original Message -----
From: "Thomas Fitzsimmons" <fitzsim@redhat.com>
To: "Robert Collins" <robert.collins@itdomain.com.au>
Cc: "J. Johnston" <jjohnstn@redhat.com>; <newlib@sources.redhat.com>;
<cygwin-patches@cygwin.com>
Sent: Saturday, January 26, 2002 12:53 PM
Subject: Patch to fail with error message when pthread_t not defined


> On Fri, 2002-01-25 at 17:53, Robert Collins wrote:
> >
> > Hmm, I wonder if
> > #ifndef pthread_t
> > #error pthread_t hasn't be specified for this platform, do you have
the
> > kernel includes available?
> > #endif
> >
> > will catch a missing typedef correctly? Assuming it won't, the
correct
> > define to check for in this case is _CYGWIN_TYPES_H.
> >
> > Rob
> >
>
> Comments?
>
> Index: signal.h
> ===================================================================
> RCS file: /cvs/src/src/newlib/libc/include/sys/signal.h,v
> retrieving revision 1.11
> diff -c -r1.11 signal.h
> *** signal.h 2002/01/25 00:47:44 1.11
> --- signal.h 2002/01/26 01:41:42
> ***************
> *** 159,164 ****
> --- 159,169 ----
>   int _EXFUN(sigpause, (int));
>
>   #if defined(_POSIX_THREADS)
> + #ifdef __CYGWIN__
> + #  ifndef _CYGWIN_TYPES_H
> + #    error You need the winsup sources or a cygwin installation to
> compile the cygwin version of newlib.
> + #  endif
> + #endif
>   int _EXFUN(pthread_kill, (pthread_t thread, int sig));
>   #endif
>
>
> --
> Thomas Fitzsimmons
> Red Hat Canada Limited        e-mail: fitzsim@redhat.com
> 2323 Yonge Street, Suite 300
> Toronto, ON M4P2C9
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]