From: Rich Felker Date: Sat, 8 Mar 2014 05:50:19 +0000 (-0500) Subject: in sys/procfs.h, avoid using __WORDSIZE macro X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=73f5b096056e03d8e27965040faee0af778517fc;hp=e12fda3bffb3558a27834a07a0c936e68eb25741;p=musl 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. --- 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