Re: [PATCH] [JAVA] patch for Java on RTEMS

Ralf Corsepius <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.java.patches,gmane.comp.gcc.java.devel
Message-ID <[email protected]>
On 08/14/2011 03:03 PM, Jie Liu wrote:
> Hi,
>
> I have add the boehm-gc patch and the configure for gcc patch to the
> patch attached. So we can add this patch and then compile gcj for
> RTEMS.
>
> Best Regards,
> Jie

--- boehm-gc/include/private/gcconfig.h	(revision 172224)
+++ boehm-gc/include/private/gcconfig.h	(working copy)
..
@@ -1297,6 +1302,19 @@
  #	define STACKBOTTOM ((ptr_t)0xc0000000)
  #	define DATAEND	/* not needed */
  #   endif
+#   ifdef RTEMS
+#       define OS_TYPE "RTEMS"
+#       include <sys/unistd.h>

Why sys/unistd.h?

sys/unistd.h is not supposed to be accessed directly.
This likely should be a plain simple "#include <unistd.h>"

Ralf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.