NAME_MAX for Solaris
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1449 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
+14
-1
@@ -35,7 +35,20 @@ char *strupr (char *str);
|
|||||||
// let me know. - SvdB
|
// let me know. - SvdB
|
||||||
#else
|
#else
|
||||||
# include <limits.h>
|
# include <limits.h>
|
||||||
/* PATH_MAX is per POSIX defined in <limits.h> */
|
/* PATH_MAX is per POSIX defined in <limits.h>, but:
|
||||||
|
* "A definition of one of the values from Table 2.6 shall bea
|
||||||
|
* omitted from <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()
|
||||||
|
* function."
|
||||||
|
* _POSIX_NAME_MAX will provide a minimum (14).
|
||||||
|
* This is relevant (at least) for Solaris.
|
||||||
|
*/
|
||||||
|
# ifndef NAME_MAX
|
||||||
|
# define NAME_MAX _POSIX_NAME_MAX
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Some types
|
// Some types
|
||||||
|
|||||||
Reference in New Issue
Block a user