[PATCH] [JAVA] patch for Java on RTEMS

Ralf Corsepius ralf.corsepius@rtems.org
Fri Aug 26 13:33:00 GMT 2011


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



More information about the Java mailing list