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 Message-Id: <200410191343.i9JDhqUn015478@tyr.informatik.fh-fulda.de> Date: Tue, 19 Oct 2004 15:43:52 +0200 (CEST) From: Siegmar Gross Reply-To: Siegmar Gross Subject: incompatible types in header files To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: EDN4EaMs62VTDOvND/7oUQ== X-HRZ-JLUG-MailScanner-Information: Passed JLUG virus check X-HRZ-JLUG-MailScanner: Found to be clean X-IsSubscribed: yes Note-from-DJ: This may be spam Hi, /usr/include/sys/features.h suggests to define "__rtems__" if you want POSIX functionality. Unfortunately there are incompatible types so that the compilation breaks. eiger Solutions 39 \gcc -D__rtems__ x.c In file included from /usr/include/cygwin/types.h:21, from /usr/include/sys/types.h:365, from /usr/include/stdio.h:46, from x.c:1: /usr/include/stdint.h:20: error: conflicting types for `int32_t' /usr/include/machine/types.h:15: error: previous declaration of `int32_t' In file included from /usr/include/sys/types.h:365, from /usr/include/stdio.h:46, from x.c:1: /usr/include/cygwin/types.h:47: error: conflicting types for `dev_t' /usr/include/sys/types.h:152: error: previous declaration of `dev_t' eiger Solutions 40 more x.c #include int main (void) { printf ("Hello\n"); return 0; } eiger Solutions 41 Does anybody know which types are the better ones? In /usr/include/pthread.h exist the following definitions: #define PTHREAD_PRIO_NONE #define PTHREAD_PRIO_INHERIT #define PTHREAD_PRIO_PROTECT They should have a value (even if the function isn't implemented yet), e.g., Solaris 9 uses 0x0, 0x10, and 0x20. Can somebody fix these problems? Thank you very much for any help in advance. Kind regards Siegmar -- 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/