Re: [PATCH] Fix nbdm.c build break

Jeff Johnston <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <CAOox84sFAO75q9s1P-vL+=fB-4zqKXB2RG4HQ5byJUG+oPydCg@mail.gmail.com>
Patch merged.  Thanks.

-- Jeff J.

On Wed, May 4, 2022 at 1:03 PM Dimitar Dimitrov <[email protected]> wrote:

> The ndbm.c build broke with:
>   Commit 357d7fcc6
>   In <stdio.h> provide only necessary types
>
> The above commit exposed a latent missing-header bug:
>   newlib/newlib/libc/include/ndbm.h:83:38: error: unknown type name
> ‘mode_t’
>
> Signed-off-by: Dimitar Dimitrov <[email protected]>
> ---
>  newlib/libc/include/ndbm.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/newlib/libc/include/ndbm.h b/newlib/libc/include/ndbm.h
> index c5084b9c2..1e5072cf1 100644
> --- a/newlib/libc/include/ndbm.h
> +++ b/newlib/libc/include/ndbm.h
> @@ -40,6 +40,7 @@
>  #ifndef _NDBM_H_
>  #define        _NDBM_H_
>
> +#include <sys/types.h> /* For mode_t. */
>  /* #include <db.h> */
>
>  /*
> --
> 2.35.1
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.