This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A patch for stdlib/isomac.c


Without this patch, I cannot run "make check" in more then one
build directories at the same time.


H.J.
----
2001-03-31  H.J. Lu  <hjl@gnu.org>

	* stdlib/isomac.c (TMPFILE): Change it to tmpnam (NULL).

Index: stdlib/isomac.c
===================================================================
RCS file: /work/cvs/gnu/glibc/stdlib/isomac.c,v
retrieving revision 1.1.1.2
diff -u -p -r1.1.1.2 isomac.c
--- stdlib/isomac.c	2001/04/01 03:53:20	1.1.1.2
+++ stdlib/isomac.c	2001/04/01 06:03:06
@@ -75,7 +75,11 @@
 #include <stdlib.h>
 #include <string.h>
 
+#if 0
 #define TMPFILE             "/tmp/macros"
+#else
+static const char *TMPFILE;
+#endif
 #define HEADER_MAX          256
 
 /* ISO C header names including Amendment 1 (without ".h" suffix).  */
@@ -246,6 +250,8 @@ get_null_defines (void)
   size_t result_max = 0;
   FILE *input;
   int first = 1;
+
+  TMPFILE = tmpnam (NULL);
 
   command = malloc (sizeof fmt + sizeof "/dev/null" + 2 * strlen (CC)
 		    + strlen (INC) + strlen (TMPFILE));


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]