Friday, May 26, 2017

Re: editors/elvis with clang

On 2017/05/26 13:38, Ricardo Mestre wrote:
> Hi,
>
> By declaring both UP and BC as extern it's possible to compile editors/elvis
> with clang.
>
> OK?

ok, but I'm wondering if we should be marking this type of patch somehow?
A full clang toolchain doesn't have a problem with this. it's only needed for
clang with the binutils linker we have in base.



> Index: patches/patch-guitcap_c
> ===================================================================
> RCS file: patches/patch-guitcap_c
> diff -N patches/patch-guitcap_c
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-guitcap_c 26 May 2017 12:34:51 -0000
> @@ -0,0 +1,26 @@
> +$OpenBSD$
> +
> +Index: guitcap.c
> +--- guitcap.c.orig
> ++++ guitcap.c
> +@@ -15,11 +15,7 @@
> + * variable. Others (particularly ncurses) forbid it. The nice ones
> + * supply one if you don't, so they'll work either way.
> + */
> +-#ifdef NEED_BC
> +- char *BC; /* :bc=: move cursor left */
> +-#else
> + extern char *BC; /* :bc=: move cursor left */
> +-

No comments:

Post a Comment