[openssl-dev] [openssl.org #4057] apps/rehash.c fails to compile on Solaris (+ fix)
Vladimir Kotal via RT
rt at openssl.org
Thu Sep 24 12:56:04 UTC 2015
apps/rehash.c fails to compile on Solaris and other systems that do not
define NAME_MAX in limits.h.
Namely, Solaris has this comment in limits.h:
/*
* POSIX 1003.1a, section 2.9.5, table 2-5 contains [NAME_MAX] and the
* related text states:
*
* A definition of one of the values from Table 2-5 shall be omitted
from the
* <limits.h> on specific implementations where the corresponding value is
* equal to or greater than the stated minimum, but where the value can
vary
* depending on the file to which it is applied. The actual value
supported for
* a specific pathname shall be provided by the pathconf() (5.7.1)
function.
*
* This is clear that any machine supporting multiple file system types
* and/or a network can not include this define, regardless of protection
* by the _POSIX_SOURCE and _POSIX_C_SOURCE flags.
*
* #define NAME_MAX 14
*/
See pull request https://github.com/openssl/openssl/pull/408 for the
actual fix.
Cheers,
v.
_______________________________________________
openssl-bugs-mod mailing list
openssl-bugs-mod at openssl.org
https://mta.openssl.org/mailman/listinfo/openssl-bugs-mod
More information about the openssl-dev
mailing list