[systemd-devel] [RFC 05/25] shared/util.h: include sys/reg.h for __WORDSIZE

David Herrmann dh.herrmann at gmail.com
Thu Sep 18 15:32:21 PDT 2014


Hi

On Thu, Sep 18, 2014 at 3:24 PM, Emil Renner Berthing <systemd at esmil.dk> wrote:
> ---
>  src/shared/util.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/shared/util.h b/src/shared/util.h
> index 08d556f..32e5090 100644
> --- a/src/shared/util.h
> +++ b/src/shared/util.h
> @@ -24,6 +24,7 @@
>  #include <alloca.h>
>  #include <fcntl.h>
>  #include <inttypes.h>
> +#include <sys/reg.h>

__WORDSIZE is declared in bits/wordsize.h on glibc. Can you check
where exactly it's defined on your system? sys/reg.h sounds weird. I'd
prefer something like sys/types.h, stdint.h, limits.h. They all work
on glibc and kinda make sense.

Thanks
David

>  #include <time.h>
>  #include <sys/time.h>
>  #include <stdarg.h>
> --
> 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