Mail Archives: cygwin/2004/10/19/09:44:39
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 <stdio.h>
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/
- Raw text -