[systemd-devel] [RFC 14/25] shared/missing.h: check for missing __compar_fn_t typedef

David Herrmann dh.herrmann at gmail.com
Thu Sep 18 15:40:24 PDT 2014


Hi

On Thu, Sep 18, 2014 at 3:24 PM, Emil Renner Berthing <systemd at esmil.dk> wrote:
> ---
>  src/shared/missing.h | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/src/shared/missing.h b/src/shared/missing.h
> index 55e61f6..be099c5 100644
> --- a/src/shared/missing.h
> +++ b/src/shared/missing.h
> @@ -147,6 +147,11 @@ static inline char *canonicalize_file_name(const char *path) {
>    })
>  #endif
>
> +#ifndef __COMPAR_FN_T
> +#define __COMPAR_FN_T
> +typedef int (*__compar_fn_t)(const void *, const void *);
> +#endif
> +

Why not simply define this in your libc? I mean, it doesn't add any
code, so seems totally legit to add.

Thanks
David

>  #ifdef __x86_64__
>  #  ifndef __NR_fanotify_init
>  #    define __NR_fanotify_init 300
> --
> 2.1.0
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list