A patch for stdlib/isomac.c

Andreas Jaeger aj@suse.de
Sun Apr 1 00:37:00 GMT 2001


"H . J . Lu" <hjl@lucon.org> writes:

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

In that case annexc.c should also get changed.

Andreas

> 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));
> 

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Libc-alpha mailing list