aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 7737287..6e4a10d 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -39,7 +39,7 @@ compilation is specified by a string called a "spec". */
#include <sys/stat.h>
#include <errno.h>
-#ifndef NO_SYS_FILE_H
+#ifdef HAVE_SYS_FILE_H
#include <sys/file.h> /* May get R_OK, etc. on some systems. */
#endif
@@ -150,6 +150,10 @@ extern char *sys_errlist[];
extern char *strerror();
#endif
+#ifndef HAVE_KILL
+#define kill(p,s) raise(s)
+#endif
+
/* If a stage of compilation returns an exit status >= 1,
compilation of that file ceases. */
@@ -5152,7 +5156,7 @@ validate_switches (start)
}
/* Check whether a particular argument was used. The first time we
- canonialize the switches to keep only the ones we care about. */
+ canonicalize the switches to keep only the ones we care about. */
static int
used_arg (p, len)