summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/tsystem.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/tsystem.h')
-rw-r--r--contrib/gcc/tsystem.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/contrib/gcc/tsystem.h b/contrib/gcc/tsystem.h
index 5b81e48..f24bab7 100644
--- a/contrib/gcc/tsystem.h
+++ b/contrib/gcc/tsystem.h
@@ -26,7 +26,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
This exception does not however invalidate any other reasons why
the executable file might be covered by the GNU General Public License. */
-
#ifndef GCC_TSYSTEM_H
#define GCC_TSYSTEM_H
@@ -59,6 +58,14 @@ extern void free (void *);
extern int atexit (void (*)(void));
#endif
+#ifndef abort
+extern void abort (void) __attribute__ ((__noreturn__));
+#endif
+
+#ifndef strlen
+extern size_t strlen (const char *);
+#endif
+
#else /* ! inhibit_libc */
/* We disable this when inhibit_libc, so that gcc can still be built without
needing header files first. */
@@ -81,20 +88,16 @@ extern int atexit (void (*)(void));
extern int errno;
#endif
-#ifdef POSIX
-#include <string.h>
-#endif
-
/* GCC (fixproto) guarantees these system headers exist. */
+#include <string.h>
#include <stdlib.h>
#include <unistd.h>
/* GCC supplies this header. */
#include <limits.h>
-#ifdef POSIX
+/* GCC (fixproto) guarantees this system headers exists. */
#include <time.h>
-#endif
#endif /* inhibit_libc */
OpenPOWER on IntegriCloud