Hi,
The winsup cvs HEAD doesn't build.  The error is in winsup/mingw/crt1.c --
gcc chokes on _onexit_t.  Further investigation identified the culprit:
http://www.cygwin.com/ml/cygwin-cvs/2002-q4/msg00056.html , in particular,
the following change:
        crt1.c: Don't include fcntrl.h, stdlib.h.
_onexit_t is defined in stdlib.h.
I've attached the patch to include stdlib.h back, which fixes the build.
        Igor

ChangeLog:
2002-10-19  Igor Pechtchanski <[EMAIL PROTECTED]>

        * crt1.c: Include stdlib.h.

-- 
                                http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_                [EMAIL PROTECTED]
ZZZzz /,`.-'`'    -.  ;-;;,_            [EMAIL PROTECTED]
     |,4-  ) )-,_. ,\ (  `'-'           Igor Pechtchanski
    '---''(_/--'  `-'\_) fL     a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51
Index: winsup/mingw/crt1.c
===================================================================
RCS file: /cvs/src/src/winsup/mingw/crt1.c,v
retrieving revision 1.4
diff -u -p -r1.4 crt1.c
--- winsup/mingw/crt1.c 19 Oct 2002 20:26:26 -0000      1.4
+++ winsup/mingw/crt1.c 20 Oct 2002 02:22:52 -0000
@@ -26,6 +26,7 @@
  *
  */
 
+#include <stdlib.h>
 #include <stdio.h>
 #include <io.h>
 #include <process.h>

Reply via email to