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

2014-09-18 Thread Emil Renner Berthing
---
 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
 #include time.h
 #include sys/time.h
 #include stdarg.h
-- 
2.1.0

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


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

2014-09-18 Thread David Herrmann
Hi

On Thu, Sep 18, 2014 at 3:24 PM, Emil Renner Berthing syst...@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@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/systemd-devel
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel