bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] [PATCH] Fix compilation error in readline/util.c in e


From: Joel Brobecker
Subject: Re: [Bug-readline] [PATCH] Fix compilation error in readline/util.c in environments with missing strcasecmp
Date: Sat, 21 Sep 2013 06:48:37 -0700
User-agent: Mutt/1.5.21 (2010-09-15)

Hi Chet,

Martin just sent us this patch, which indedd looks trivial, but we
thought we'd run it by you first so you could apply it in the official
repository first if you agree. On our end, we'll apply the fix you
decide to apply.

Thank you both!

> when building GDB 7.6.1 in MinGW (Windows 7) for the arm-none-eabi
> target, I got compilation error in readline/util.c:392 --- missing
> semicolon after do { ... } while (...) loop. The attached patch fixes
> this trivial error.
> 
> 
> 2013-09-21  Martin Benda  <address@hidden>
> 
>       * readline/util.c: Add missing semicolon to fix compilation error
>       in environments with missing strcasecmp (e.g. MinGW).
> 
> 
> diff -Naur gdb-7.6.1/readline/util.c dist-patched/gdb-7.6.1/readline/util.c
> --- gdb-7.6.1/readline/util.c 2013-09-21 09:28:03.000000000 +0200
> +++ gdb-7.6.1-patched/readline/util.c 2013-09-21 09:41:12.000000000 +0200
> @@ -389,7 +389,7 @@
>        break;
>      s2++;
>    }
> -  while (--count != 0)
> +  while (--count != 0);
> 
>  return (0);
> }
> 
> 
> Martin Benda

> diff -Naur gdb-7.6.1/readline/util.c dist-patched/gdb-7.6.1/readline/util.c
> --- gdb-7.6.1/readline/util.c 2013-09-21 09:28:03.000000000 +0200
> +++ gdb-7.6.1-patched/readline/util.c 2013-09-21 09:41:12.000000000 +0200
> @@ -389,7 +389,7 @@
>          break;
>        s2++;
>      }
> -  while (--count != 0)
> +  while (--count != 0);
>  
>    return (0);
>  }

> 2013-09-21  Martin Benda  <address@hidden>
> 
>       * readline/util.c: Add missing semicolon to fix compilation error
>       in environments with missing strcasecmp (e.g. MinGW).


-- 
Joel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]