This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
A patch for stdlib/isomac.c
- To: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- Subject: A patch for stdlib/isomac.c
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Sat, 31 Mar 2001 22:12:14 -0800
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));