Created
February 19, 2011 00:07
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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