From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11905 invoked by alias); 28 Jan 2009 16:20:33 -0000 Received: (qmail 11896 invoked by uid 22791); 28 Jan 2009 16:20:31 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Jan 2009 16:20:25 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id A18D260B8009 for ; Wed, 28 Jan 2009 16:20:23 +0000 (GMT) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AqU5tPIIyVnI; Wed, 28 Jan 2009 16:20:22 +0000 (GMT) Received: (from bartv@localhost) by hermione.bartv.net (8.14.3/8.14.3/Submit) id n0SGKL5o011477; Wed, 28 Jan 2009 16:20:21 GMT Date: Wed, 28 Jan 2009 16:20:00 -0000 Message-Id: <200901281620.n0SGKL5o011477@hermione.bartv.net> From: Bart Veer To: ecos-patches@sourceware.org Subject: yet another main() patch Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2009-01/txt/msg00033.txt.bz2 This time for the setjmp test. Bart 2009-01-28 Bart Veer * tests/setjmp.c: allow to run if CYGPKG_LIBC_STARTUP is absent. Index: tests/setjmp.c =================================================================== RCS file: /cvs/ecos/ecos/packages/language/c/libc/setjmp/current/tests/setjmp.c,v retrieving revision 1.3 diff -u -p -r1.3 setjmp.c --- tests/setjmp.c 23 May 2002 23:07:08 -0000 1.3 +++ tests/setjmp.c 28 Jan 2009 16:20:07 -0000 @@ -64,6 +64,7 @@ // INCLUDES +#include #include // Test infrastructure header #include // Header for what we're testing @@ -86,8 +87,12 @@ test_fun( void ) } // test_fun(); +#ifndef CYGPKG_LIBC_STARTUP +void cyg_user_start(void) +#else int main( int argc, char *argv[] ) +#endif { static int static_i=0; // temporary variable int j=0; // ditto