Skip to content

Instantly share code, notes, and snippets.

@eblot
Created February 19, 2011 00:07
Show Gist options
  • Save eblot/834646 to your computer and use it in GitHub Desktop.
Save eblot/834646 to your computer and use it in GitHub Desktop.
Patch for GCC-objc 4.6.0 ARM eCos EABI with Objective-C support
diff --git a/libobjc/error.c b/libobjc/error.c
index 1dae365..f94cc26 100644
--- a/libobjc/error.c
+++ b/libobjc/error.c
@@ -30,12 +30,13 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
malloc, free, etc. on some platforms. It is unclear if we still
need it, but it can't hurt. */
#define __USE_FIXED_PROTOTYPES__
+#include <sys/reent.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
/* Prints an error message and aborts the program. */
-void
+void __attribute__((weak))
_objc_abort (const char *fmt, ...)
{
va_list ap;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment