Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: print -f with -s/-z



В Втр, 19.03.2002, в 17:21, Oliver Kiddle написал:
> This patch is basically the same as 16259 except that I've sorted
> out those things which held me back from committing it before
> (open_memstream prototype and use of gettempname()).
> 
...
> Index: Src/builtin.c
> ===================================================================
> RCS file: /cvsroot/zsh/zsh/Src/builtin.c,v
> retrieving revision 1.71
> diff -u -r1.71 builtin.c
> --- Src/builtin.c	4 Mar 2002 15:52:00 -0000	1.71
> +++ Src/builtin.c	19 Mar 2002 14:12:35 -0000
> @@ -27,6 +27,9 @@
>   *
>   */
>  
> +/* this is defined so we get the prototype for open_memstream */
> +#define _GNU_SOURCE 1
> +


It is a bit weird to define it unconditionally even on a system that has
nothing to do with GNU. 

If some extra steps are needed to pull in prototype for open_memstream I
prefer configure to test for them instead.

-andrej



Messages sorted by: Reverse Date, Date, Thread, Author