diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-01 13:15:28 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-01 13:15:28 +0000 |
commit | feeb6596a18e42225d0f25a03b35c564d9a10ebb (patch) | |
tree | 7e6fb5e50aa3f901480410fc04ba058b6f0e94fa /gcc/system.h | |
parent | acc16a01c06415b69d0a54c9e86f4ec72665ee54 (diff) | |
download | gcc-feeb6596a18e42225d0f25a03b35c564d9a10ebb.tar.gz |
2010-12-01 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 167323
2010-12-01 Basile Starynkevitch <basile@starynkevitch.net>
{{merged with trunk rev 167323, and regenerated}}
* melt/generated/warmelt-normatch.0+01.c: Regenerate.
* melt/generated/warmelt-first.0.c: Regenerate.
* melt/generated/warmelt-normal.0.c: Regenerate.
* melt/generated/warmelt-normatch.0+03.c: Regenerate.
* melt/generated/warmelt-macro.0.c: Regenerate.
* melt/generated/warmelt-outobj.0.c: Regenerate.
* melt/generated/warmelt-genobj.0.c: Regenerate.
* melt/generated/warmelt-normal.0+01.c: Regenerate.
* melt/generated/warmelt-normal.0+02.c: Regenerate.
* melt/generated/warmelt-base.0.c: Regenerate.
* melt/generated/warmelt-normatch.0.c: Regenerate.
* melt/generated/warmelt-genobj.0+01.c: Regenerate.
* melt/generated/warmelt-genobj.0+03.c: Regenerate.
* melt/generated/warmelt-genobj.0+04.c: Regenerate.
* melt/generated/warmelt-debug.0.c: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@167327 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/gcc/system.h b/gcc/system.h index 41e865744e9..3dc3b4e8d88 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -180,7 +180,7 @@ extern int fprintf_unlocked (FILE *, const char *, ...); /* There are an extraordinary number of issues with <ctype.h>. The last straw is that it varies with the locale. Use libiberty's replacement instead. */ -#include <safe-ctype.h> +#include "safe-ctype.h" #include <sys/types.h> @@ -314,6 +314,9 @@ extern int errno; #ifndef O_WRONLY # define O_WRONLY 1 #endif +#ifndef O_BINARY +# define O_BINARY 0 +#endif /* Some systems define these in, e.g., param.h. We undefine these names here to avoid the warnings. We prefer to use our definitions since we @@ -353,6 +356,31 @@ extern int errno; #define WCOREFLG 0200 #endif +#include <signal.h> +#if !defined (SIGCHLD) && defined (SIGCLD) +# define SIGCHLD SIGCLD +#endif + +#ifdef HAVE_SYS_MMAN_H +# include <sys/mman.h> +#endif + +#ifndef MAP_FAILED +# define MAP_FAILED ((void *)-1) +#endif + +#if !defined (MAP_ANONYMOUS) && defined (MAP_ANON) +# define MAP_ANONYMOUS MAP_ANON +#endif + +#ifdef HAVE_SYS_RESOURCE_H +# include <sys/resource.h> +#endif + +#ifdef HAVE_SYS_TIMES_H +# include <sys/times.h> +#endif + /* The HAVE_DECL_* macros are three-state, undefined, 0 or 1. If they are defined to 0 then we must provide the relevant declaration here. These checks will be in the undefined state while configure @@ -526,6 +554,10 @@ extern int vsnprintf(char *, size_t, const char *, va_list); # define mkdir(a,b) mkdir(a) #endif +#ifndef HAVE_KILL +# define kill(p,s) raise(s) +#endif + /* Provide a way to print an address via printf. */ #ifndef HOST_PTR_PRINTF #define HOST_PTR_PRINTF "%p" @@ -804,7 +836,7 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN; LIBGCC2_FLOAT_WORDS_BIG_ENDIAN /* Miscellaneous macros that are no longer used. */ - #pragma GCC poison USE_MAPPED_LOCATION + #pragma GCC poison USE_MAPPED_LOCATION GET_ENVIRONMENT /* Libiberty macros that are no longer used in GCC. */ #undef ANSI_PROTOTYPES |