public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Jeff Johnston <jjohnstn@redhat.com>
To: kho237115@gmx.de
Cc: Newlib <newlib@sourceware.org>
Subject: Re: [PATCH] Fix missing extern C statement
Date: Mon, 26 Sep 2022 13:49:33 -0400	[thread overview]
Message-ID: <CAOox84vyU-hyX+z8A0+jQmrOTYY6TSorUZ-iUpJygco9uWL_-g@mail.gmail.com> (raw)
In-Reply-To: <20220926172008.14896-1-kho237115@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 866 bytes --]

Pushed to master.

Regards,

-- Jeff J.

On Mon, Sep 26, 2022 at 1:20 PM <kho237115@gmx.de> wrote:

> From: "Markus B. Moessner" <kho237115@gmx.de>
>
> ---
>  newlib/libc/include/sys/resource.h | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/newlib/libc/include/sys/resource.h
> b/newlib/libc/include/sys/resource.h
> index b99506bd8..c0a0d2019 100644
> --- a/newlib/libc/include/sys/resource.h
> +++ b/newlib/libc/include/sys/resource.h
> @@ -1,6 +1,10 @@
>  #ifndef _SYS_RESOURCE_H_
>  #define _SYS_RESOURCE_H_
>
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  #include <sys/time.h>
>
>  #define        RUSAGE_SELF     0               /* calling process */
> @@ -13,5 +17,8 @@ struct rusage {
>
>  int    getrusage (int, struct rusage*);
>
> +#ifdef __cplusplus
> +}
>  #endif
> +#endif /* !_SYS_RESOURCE_H_ */
>
> --
> 2.20.1.windows.1
>
>

      reply	other threads:[~2022-09-26 17:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-26 17:20 kho237115
2022-09-26 17:49 ` Jeff Johnston [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOox84vyU-hyX+z8A0+jQmrOTYY6TSorUZ-iUpJygco9uWL_-g@mail.gmail.com \
    --to=jjohnstn@redhat.com \
    --cc=kho237115@gmx.de \
    --cc=newlib@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).