musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/include/sys/procfs.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014年03月08日 00:50:19 -0500
committerRich Felker <dalias@aerifal.cx>2014年03月08日 00:50:19 -0500
commit73f5b096056e03d8e27965040faee0af778517fc (patch)
treed079c9e811606f336a2ee3d8b5a3530b3177e4fc /include/sys/procfs.h
parente12fda3bffb3558a27834a07a0c936e68eb25741 (diff)
downloadmusl-73f5b096056e03d8e27965040faee0af778517fc.tar.gz
in sys/procfs.h, avoid using __WORDSIZE macro
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.
Diffstat (limited to 'include/sys/procfs.h')
-rw-r--r--include/sys/procfs.h 2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/procfs.h b/include/sys/procfs.h
index 6a346053..f7936c43 100644
--- 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
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月29日 01:07:10 +0000

AltStyle によって変換されたページ (->オリジナル) /