one tree builds

Mumit Khan khan@xraylith.wisc.edu
Fri Nov 28 01:30:00 GMT 1997


Chris Johns <cjohns@plessey.com.au> writes:
> -I../../../egcs-971122/libiberty/../include 
> ../../../egcs-971122/libiberty/choose-temp.c
> ../../../egcs-971122/libiberty/choose-temp.c:26: sys/types.h: No such
> file or directory
> ../../../egcs-971122/libiberty/choose-temp.c:27: sys/file.h: No such
> file or directory
> ../../../egcs-971122/libiberty/choose-temp.c:36: stdio.h: No such file
> or directory

choose-temp in both gcc and libiberty need a tiny fix so that config
file for the host can define NO_SYS_FILE_H. As for stdio.h,
--enable-newlib should've supplied the include path to it.

Thu Nov  6 11:23:49 1997  Mumit Khan  <khan@xraylith.wisc.edu>

	* choose-temp.c: Change order of includes so that config.h can
	define NO_SYS_FILE_H. Needed when used in gcc, but not libiberty.


Index: mingw32/gcc/choose-temp.c
diff -u mingw32/gcc/choose-temp.c:1.1.1.1 mingw32/gcc/choose-temp.c:1.2
--- mingw32/gcc/choose-temp.c:1.1.1.1	Sun Nov  2 15:31:41 1997
+++ mingw32/gcc/choose-temp.c	Thu Nov  6 18:49:55 1997
@@ -22,17 +22,6 @@
 /* This file lives in at least two places: libiberty and gcc.
    Don't change one without the other.  */
 
-#ifndef NO_SYS_FILE_H
-#include <sys/types.h>
-#include <sys/file.h>   /* May get R_OK, etc. on some systems.  */
-#endif
-
-#ifndef R_OK
-#define R_OK 4
-#define W_OK 2
-#define X_OK 1
-#endif
-
 #include <stdio.h>	/* May get P_tmpdir.  */
 
 #ifdef IN_GCC
@@ -50,6 +39,18 @@
 #ifndef DIR_SEPARATOR
 #define DIR_SEPARATOR '/'
 #endif
+
+#ifndef NO_SYS_FILE_H
+#include <sys/types.h>
+#include <sys/file.h>   /* May get R_OK, etc. on some systems.  */
+#endif
+
+#ifndef R_OK
+#define R_OK 4
+#define W_OK 2
+#define X_OK 1
+#endif
+
 
 /* On MSDOS, write temp files in current dir
    because there's no place else we can expect to use.  */



More information about the Gcc mailing list