From 569f3a326b937236837d468761242df1dcf43520 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Mon, 17 Jan 2005 21:20:46 +0000 Subject: [PATCH] NAME_MAX for Solaris git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1453 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/uio/uioport.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/sc2/src/sc2code/libs/uio/uioport.h b/sc2/src/sc2code/libs/uio/uioport.h index c96ff10ea..31b95937d 100644 --- a/sc2/src/sc2code/libs/uio/uioport.h +++ b/sc2/src/sc2code/libs/uio/uioport.h @@ -47,7 +47,20 @@ // let me know. #else # include - /* PATH_MAX is per POSIX defined in */ + /* PATH_MAX is per POSIX defined in , but: + * "A definition of one of the values from Table 2.6 shall bea + * omitted from 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 // User ids