Corinna Vinschen corinna-cygwin@cygwin.com
Thu Dec 17 09:36:00 GMT 2015

Hi Ken,

On Dec 16 18:12, Ken Brown wrote:
> On 12/16/2015 11:48 AM, Corinna Vinschen wrote:
> > - The header file layout has been cleaned up, mostly in terms of the
> >    sys/select.h, sys/signal.h and sys/types.h files.  This is a generic
> >    change in newlib and aligns the affected headers more closely to
> >    the FreeBSD layout.
> These changes are leading to lots of errors when building emacs:
> /usr/include/cygwin/signal.h:178:3: error: unknown type name ‘pthread_attr_t’
> /usr/include/cygwin/signal.h:213:3: error: unknown type name ‘pid_t’
> /usr/include/cygwin/signal.h:230:2: error: unknown type name ‘timer_t’
> /usr/include/sys/signal.h:211:6: error: #error You need the winsup sources or a cygwin installation to compile the cygwin version of newlib.
> /usr/include/sys/signal.h:214:5: error: unknown type name ‘pthread_t’
> /usr/include/sys/time.h:104:34: error: unknown type name ‘u_int’
> [... and many more]

This puzzles me.  It looks like you're missing sys/types.h when
including sys/signal,h, but sys/signal.h includes sys/types.h by
itself, prior to including cygwin/signal.h.

How can I reproduce this?  An STC like this:

  #include <signal.h>
  main () {}

is definitely not sufficient.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20151217/ae0b3b16/attachment.sig>

More information about the Cygwin mailing list