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: <49CAFB8B.7090909@users.sourceforge.net> Date: Wed, 25 Mar 2009 22:50:35 -0500 From: "Yaakov (Cygwin/X)" User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: [1.7] does not compile with -ansi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 #includes only #ifdef _POSIX_THREADS, which is not defined if the -ansi compiler flag is passed. STC: $ echo '#include ' > test-signal.c $ gcc-4 -ansi -c test-signal.c In file included from /usr/include/sys/signal.h:107, from /usr/include/signal.h:5, from test.c:1: /usr/include/cygwin/signal.h:74: error: expected specifier-qualifier-list before 'pthread_attr_t' /usr/include/cygwin/signal.h:80: error: expected specifier-qualifier-list before '__uint32_t' /usr/include/cygwin/signal.h:96: error: expected specifier-qualifier-list before 'pid_t' /usr/include/cygwin/signal.h:270: error: expected ')' before 'int' In file included from /usr/include/signal.h:5, from test.c:1: /usr/include/sys/signal.h:152: error: expected ')' before 'int' Yaakov -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAknK+4sACgkQpiWmPGlmQSNT6wCeJI8y1S/Ts44uK0XPmDU6OOJx g4gAn0ELR3bL91RHr0Dbj802fm9oL9qU =ZkAo -----END PGP SIGNATURE----- -- 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/