Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 From: "Dave Korn" To: Subject: RE: incompatible types in header files Date: Tue, 19 Oct 2004 14:54:47 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit In-Reply-To: <200410191343.i9JDhqUn015478@tyr.informatik.fh-fulda.de> Message-ID: X-OriginalArrivalTime: 19 Oct 2004 13:54:47.0437 (UTC) FILETIME=[32015BD0:01C4B5E3] > -----Original Message----- > From: cygwin-owner On Behalf Of Siegmar Gross > Sent: 19 October 2004 14:44 > Hi, > > /usr/include/sys/features.h suggests to define "__rtems__" if you want > POSIX functionality. The copy on my system doesn't make any 'suggestions' at all. It just has a bunch of feature-test macros enclosed in #ifdef-guards. > Unfortunately there are incompatible types so that > the compilation breaks. That's because adding a #define to your code doesn't actually turn cygwin into the RTEMS operating system. If you #defined __svr4__, it wouldn't turn your PC into a SunOS box either. Merely #defining a feature test macro doesn't automagically implement the feature if cygwin doesn't already have it. It just makes the feature test invalid. cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/