diff --git a/file.c b/file.c index 16d4df1bfb..50d1765d02 100644 --- a/file.c +++ b/file.c @@ -146,6 +146,11 @@ int flock(int, int); # define UTIME_EINVAL #endif +/* Solaris 10 realpath(3) doesn't support File.realpath */ +#if defined HAVE_REALPATH && defined __sun && defined __SVR4 +#undef HAVE_REALPATH +#endif + #ifdef HAVE_REALPATH #include #include