aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-05-24 06:33:48 +0000
committerRichard Stallman <rms@gnu.org>1992-05-24 06:33:48 +0000
commit4c64aaf6a411e5426f6a9e0b464118179ab60ef1 (patch)
tree8c298489a8d9ea4231c7d87ba97855763bc34cd4
parentab1fd4838c8dc3d7f7e5bbac11401044e7a16602 (diff)
downloadgcc-4c64aaf6a411e5426f6a9e0b464118179ab60ef1.zip
gcc-4c64aaf6a411e5426f6a9e0b464118179ab60ef1.tar.gz
gcc-4c64aaf6a411e5426f6a9e0b464118179ab60ef1.tar.bz2
*** empty log message ***
From-SVN: r1072
-rw-r--r--gcc/cccp.c9
-rw-r--r--gcc/gcc.c1
2 files changed, 3 insertions, 7 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index 4487af1..f0ce06f 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -1477,7 +1477,7 @@ main (argc, argv)
char *startp, *endp;
for (num_dirs = 1, startp = epath; *startp; startp++)
- if (*startp == ':')
+ if (*startp == PATH_SEPARATOR)
num_dirs++;
include_defaults
= (struct default_include *) xmalloc ((num_dirs
@@ -1861,12 +1861,7 @@ path_include (path)
struct file_name_list *dirtmp;
/* Find the end of this name. */
-#ifdef __MSDOS__
- /* Handle cases like c:/usr/lib:d:/gcc/lib */
- while (*q != 0 && (*q != ':' || (q - p == 1 && isalpha (*p)))) q++;
-#else
- while (*q != 0 && *q != ':') q++;
-#endif
+ while (*q != 0 && *q != PATH_SEPARATOR) q++;
if (p == q) {
/* An empty name in the path stands for the current directory. */
name = (char *) xmalloc (2);
diff --git a/gcc/gcc.c b/gcc/gcc.c
index a7a2e41..866d75e 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -35,6 +35,7 @@ compilation is specified by a string called a "spec". */
#include <ctype.h>
#include <signal.h>
#include <sys/stat.h>
+#include <sys/file.h> /* May get R_OK, etc. on some systems. */
#include "config.h"
#include "obstack.h"