diff --git a/sc2/src/port.h b/sc2/src/port.h index d203994a5..f6ae8f2d7 100644 --- a/sc2/src/port.h +++ b/sc2/src/port.h @@ -35,7 +35,20 @@ char *strupr (char *str); // let me know. - SvdB #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 // Some types