This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: [PATCH] winsup cvs HEAD build broken
- From: Earnie Boyd <earnie_boyd at yahoo dot com>
- To: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- Cc: cygwin-patches at cygwin dot com
- Date: Sun, 20 Oct 2002 08:02:20 -0400
- Subject: Re: [PATCH] winsup cvs HEAD build broken
- References: <Pine.GSO.4.44.0210192212110.6818-200000@slinky.cs.nyu.edu>
- Reply-to: cygwin-patches at cygwin dot com
FYI, Danny fixed this but with a different patch.
Earnie.
Igor Pechtchanski wrote:
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 <pechtcha@cs.nyu.edu>
* crt1.c: Include stdlib.h.
------------------------------------------------------------------------
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>