#define _POSIX_REALTIME_SIGNALS causes parse error in sys/signal.h

2003-07-15 Thread Attila Szegedi
When I try to compile a sample .c file containing only these two lines: #define _POSIX_REALTIME_SIGNALS #include I get these parse errors: $ gcc sample.c In file included from /usr/include/signal.h:5, from sample.c:2: /usr/include/sys/signal.h:179: parse error before "siginfo_t

Re: #define _POSIX_REALTIME_SIGNALS causes parse error in sys/signal.h

2003-07-15 Thread Attila Szegedi
- Original Message - From: "Igor Pechtchanski" <[EMAIL PROTECTED]> To: "Attila Szegedi" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, July 15, 2003 8:30 PM Subject: Re: #define _POSIX_REALTIME_SIGNALS causes parse error in sys/signal.h

How to get sigwait()?

2003-07-15 Thread Attila Szegedi
This is kind of follow-up to my question about _POSIX_REALTIME_SIGNALS: what is (is there?) the proper way to get compiled some code under Cygwin (originally written for Linux) that uses the sigwait() function? I first naively thought that defining _POSIX_REALTIME_SIGNALS is enough to conditionall

How to emulate pthread_yield

2003-07-15 Thread Attila Szegedi
Still porting a piece of software from Linux to Cygwin. The code uses pthread_yield() function, but there is no such function in Cygwin's pthread.h (I updated my copy of Cygwin from the online setup today). Any known workaround? I tried looking around the mailing list archive, and in one place it s

Re: #define _POSIX_REALTIME_SIGNALS causes parse error in sys/signal.h

2003-07-15 Thread Attila Szegedi
- Original Message - From: "Igor Pechtchanski" <[EMAIL PROTECTED]> To: "Attila Szegedi" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, July 15, 2003 11:52 PM Subject: Re: #define _POSIX_REALTIME_SIGNALS causes parse error in sys/signal