projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e12fda3
)
in sys/procfs.h, avoid using __WORDSIZE macro
author
Rich Felker
<dalias@aerifal.cx>
Sat, 8 Mar 2014 05:50:19 +0000
(
00:50
-0500)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 8 Mar 2014 05:50:19 +0000
(
00:50
-0500)
this was problematic because several archs don't define __WORDSIZE. we
could add it, but I would rather phase this macro out in the long
term. in our version of the headers, UINTPTR_MAX is available here, so
just use it instead.
include/sys/procfs.h
patch
|
blob
|
history
diff --git
a/include/sys/procfs.h
b/include/sys/procfs.h
index 6a3460539581d0573c50d0871c133252e6dc85e0..f7936c43233ee9424c654f29add003a1167dd386 100644
(file)
--- a/
include/sys/procfs.h
+++ b/
include/sys/procfs.h
@@
-40,7
+40,7
@@
struct elf_prpsinfo
char pr_zomb;
char pr_nice;
unsigned long int pr_flag;
-#if
__WORDSIZE == 32
+#if
UINTPTR_MAX == 0xffffffff
unsigned short int pr_uid;
unsigned short int pr_gid;
#else