From 142617c8e1cad65fa483c5beb78ab40a99626a87 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Mon, 1 Jul 2019 15:33:13 -0700 Subject: [PATCH] Don't use native realpath(3) on Solaris CI shows it does work on Solaris 11, but does not work on Solaris 10. However, until I figure out a good way to differentiate between Solaris 10 and 11, this should get CI passing on both. --- file.c | 5 +++++ 1 file changed, 5 insertions(+) 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