[systemd-devel] [RFC 22/25] support POSIX strerror_r returning int

Lennart Poettering lennart at poettering.net
Thu Oct 9 11:11:13 PDT 2014


On Thu, 18.09.14 15:24, Emil Renner Berthing (systemd at esmil.dk) wrote:

> ---
>  configure.ac                      |  2 ++
>  src/journal/journal-send.c        | 36 +++++++++++++++++++++++++++---------
>  src/libsystemd/sd-bus/bus-error.c | 14 +++++++++++++-
>  3 files changed, 42 insertions(+), 10 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 9cd4c05..3f17833 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -336,6 +336,8 @@ AC_CHECK_DECLS([IFLA_MACVLAN_FLAGS,
>  #include <linux/if_bridge.h>
>  ]])
>  
> +AC_FUNC_STRERROR_R

I'd be willing to merge a patch that switches our code to make use of
the POSIX version of strerror_r(), instead of the GNU one. Not sure
though whether the headers allow that without giving up all of the GNU
apis...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list