Return the correct environment name for 64-bit platforms in the
_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS case.
This commit is contained in:
parent
78ff825835
commit
4b85f43b30
@ -105,8 +105,9 @@ confstr(int name, char *buf, size_t len)
|
||||
goto docopy;
|
||||
|
||||
case _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS:
|
||||
/* XXX - should have more complete coverage */
|
||||
if (sizeof(long) * CHAR_BIT >= 64)
|
||||
p = "_POSIX_V6_LPBIG_OFFBIG";
|
||||
p = "_POSIX_V6_LP64_OFF64";
|
||||
else
|
||||
p = "_POSIX_V6_ILP32_OFFBIG";
|
||||
goto docopy;
|
||||
|
Loading…
Reference in New Issue
Block a user