develooper Front page | perl.perl5.porters | Postings from April 2017

[perl #131110] CORE/util.h breaks if multiply included (patch)

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
April 7, 2017 15:14
Subject:
[perl #131110] CORE/util.h breaks if multiply included (patch)
Message ID:
rt-4.0.24-13852-1491578067-1862.131110-15-0@perl.org
On Thu, 06 Apr 2017 16:06:38 GMT, james.schneider@db.com wrote:
> This is a bug report for perl from james.schneider@db.com,
> generated with the help of perlbug 1.40 running under perl 5.24.1.
> 
> -----------------------------------------------------------------
> [Please describe your issue here]
> 
> The header file CORE/util.h breaks if multiply included.  This breaks
> older
> modules that include both perl.h and util.h directly.  A patch to
> address this
> is included below.
> 
> --<patch below>--
> --- util.h.orig 2017-04-06 16:51:50.000000000 +0100
> +++ util.h      2017-04-06 16:53:40.000000000 +0100
> @@ -8,6 +8,9 @@
>   *
>   */
> 
> +#ifndef PERL_CORE_UTIL_H_INCLUDED
> +#define PERL_CORE_UTIL_H_INCLUDED
> +
> #ifdef VMS
> #  define PERL_FILE_IS_ABSOLUTE(f) \
>         (*(f) == '/'
> \
> @@ -232,3 +235,4 @@
> /*
>   * ex: set ts=8 sts=4 sw=4 et:
>   */
> +#endif /*PERL_CORE_UTIL_H_INCLUDED*/
> --<patch above>--
> 

Would you be able to (a) provide an example of this failure; and (b) to provide the patch as an email attachment (rather than inline)?

Thank you very much.
Jim Keenan



---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=131110

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About