cisco / ChezScheme

Chez Scheme
Apache License 2.0
6.89k stars 983 forks source link

use `PATH_MAX` buffer with `realpath` on Mac OS <= v10.6 #780

Closed mflatt closed 7 months ago

mflatt commented 7 months ago

Modern systems support a NULL second argument to realpath, but some older ones don't. Use whether PATH_MAX is defined as a way of triggering a non-NULL second argument, and arrange for PATH_MAX that to be defined for old Mac OS versions.