delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <49CB0F4A.908@users.sourceforge.net> |
Date: | Thu, 26 Mar 2009 00:14:50 -0500 |
From: | "Yaakov (Cygwin/X)" <yselkowitz AT users DOT sourceforge DOT net> |
User-Agent: | Thunderbird 2.0.0.21 (Windows/20090302) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [1.7] <signal.h> does not compile with -ansi |
References: | <49CAFB8B DOT 7090909 AT users DOT sourceforge DOT net> <49CB0834 DOT 3010904 AT gmail DOT com> |
In-Reply-To: | <49CB0834.3010904@gmail.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
--------------070902010603050904010309 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Dave Korn wrote: > Should signal.h perhaps wrap the stuff tagged 'CX' and 'RTS' at > http://www.opengroup.org/onlinepubs/009695399/basedefs/signal.h.html > in #ifndef __STICT_ANSI__ ? Actually, it looks like someone already thought about that, but never enabled it. There is a commented-out #ifndef __STRICT_ANSI__ which excludes about half of sys/signal.h. *UNTESTED* patch attached. Yaakov -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAknLD0oACgkQpiWmPGlmQSNOdACgt94H5NhK+AoIFSIb4ErJ0/sa RDQAoIJSRl4/wwmhZpR55jew4uKClJo1 =dQPl -----END PGP SIGNATURE----- --------------070902010603050904010309 Content-Type: text/x-patch; name="newlib-ansi-signal.h.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="newlib-ansi-signal.h.patch" Index: libc/include/sys/signal.h =================================================================== RCS file: /cvs/src/src/newlib/libc/include/sys/signal.h,v retrieving revision 1.18 diff -u -r1.18 signal.h --- libc/include/sys/signal.h 18 Apr 2006 20:06:09 -0000 1.18 +++ libc/include/sys/signal.h 26 Mar 2009 05:14:19 -0000 @@ -9,7 +9,7 @@ #include "_ansi.h" #include <sys/features.h> -/* #ifndef __STRICT_ANSI__*/ +#ifndef __STRICT_ANSI__ #if defined(_POSIX_THREADS) #include <sys/types.h> /* for pthread data types */ @@ -187,7 +187,7 @@ #endif /* defined(__CYGWIN__) || defined(__rtems__) */ -/* #endif __STRICT_ANSI__ */ +#endif /* __STRICT_ANSI__ */ #if defined(___AM29K__) /* These all need to be defined for ANSI C, but I don't think they are --------------070902010603050904010309 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ --------------070902010603050904010309--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |